-1
#multiplication table with time delay
import time
num=int(input("Enter the value for which you want the multiplication table for:"))
print("The table will be as:\n")
for i in range(1,11):
{
print(num,"x",i,"=",num*i,"\n")
time.sleep(3)
}
print("The table is completed")
input("Press enter to exit")
在這段代碼編譯時談到這一說法什麼是錯誤的代碼:獲取無效的語法在時間的方法
time.sleep(3)
它顯示無效的語法錯誤。這段代碼中的錯誤是什麼?