0
Why do I get no input in these code ?
6 Answers
+ 5
Because you did not use input() function. You set var "i" to a fixed value (4). instead of this, you could use:
i = int(input('enter a number:'))
If you enter a number greater than 7, program is running in an infinite loop.
+ 1
Ifham Khwaja
Take care of indentation
i = 4
while True:
i = i + 1
if i == 5:
print(" 7 is power")
continue
if i == 8:
print (" 8 is over")
break
print (i)
print ("Finished")
+ 1
Ifham Khwaja
David is right. Indentation is the issue here.
Use the tab option for indentation instead of adding space manually.
0
Thank you
0
No Input for the query INSERT INTO Animals VALUES('Slim','Giraffe','1'); as this is correct query i am writing