+ 1
what's wrong? , can't get it, something missing, i am a beginner
num = input("please input your number") if num > 5: print("Bigger than 5") if num <=47: print("Between 5 and 47")
5 Antworten
+ 3
When you use input the users input is turned into a string. In this case you need an int so you do
num=int(input ("Enter A Number: "))
Keep in mind if you enter any non int or float you will get an error.
+ 2
Use the variable so do:
print(num)
+ 1
oh I c thx a lot
+ 1
so what should be the print statement to print the input number?
print("Your number is")
+ 1
got it ! thx