0

help level 2 question

what is wrong here num =input ("choose 100") num=int (num) if num<101 : print("less than 101") if num>99: print("number is 100")

11th Jul 2018, 2:18 PM
Noaym Labbi
Noaym Labbi - avatar
5 ответов
+ 1
there seems to be a space between int and bracket and also input and bracket.
11th Jul 2018, 2:27 PM
Satyam
0
What do you want the output to be? Do you want both prints to occur? At the moment, the second if statement is rested inside the first. Is that intentional?
11th Jul 2018, 2:21 PM
James
James - avatar
0
i want 100 thx
11th Jul 2018, 2:21 PM
Noaym Labbi
Noaym Labbi - avatar
0
But when I type 100, what do you want it to say?
11th Jul 2018, 2:26 PM
James
James - avatar
0
Thanks for the reply James, thankfully i finally managed to find the answer! Took me a while but it was worth it, i can finally meet my family again.
31st Mar 2024, 2:26 PM
Noaym Labbi
Noaym Labbi - avatar