+ 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")

27th Aug 2017, 3:21 PM
5p4c353c
5p4c353c - avatar
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.
27th Aug 2017, 3:30 PM
MemeSenpai
MemeSenpai - avatar
+ 2
Use the variable so do: print(num)
27th Aug 2017, 3:59 PM
MemeSenpai
MemeSenpai - avatar
+ 1
oh I c thx a lot
27th Aug 2017, 3:32 PM
5p4c353c
5p4c353c - avatar
+ 1
so what should be the print statement to print the input number? print("Your number is")
27th Aug 2017, 3:57 PM
5p4c353c
5p4c353c - avatar
+ 1
got it ! thx
27th Aug 2017, 4:01 PM
5p4c353c
5p4c353c - avatar