0
Why it doesn't work?
x = 9 y = int(input("число")) print(y) z = (x*y) if z >= x: print ("ok1") else: print ("bed")
8 Answers
+ 9
#It should work with this
x = 9
y = int(input("число")) #P.s This is correct
print(y)
z = (x*y)
if z >= x:
print ("ok1") #give a space
else:
print ("bed")
+ 10
Because "число" is not an Integer
EDIT : This is not correct. "число" is a value that prints before input is taken
+ 7
Indentation error, give an indent before "print("ok1")
+ 6
@Yeruchan The argument inside the input() function is the text that is displayed to the user when they need to input something.
+ 5
The statements inside if else blocks should be indented. That means it needs to have a number of 2 or 4 spaces.
x = 9
y = int(input("число"))
print(y)
z = (x*y)
if z >= x:
print ("ok1")
else:
print ("bed")
+ 1
without "число" the same problem. error in line 6
+ 1
how it should be in right way?
+ 1
how it should be in right way?