0

Batman Challenge

num = int(input("Total number of criminals being reported: ")) if num<5: print ("I got this!") elif 5<=num<=10: print ("Help me Batman") elif num>10: print ("Good Luck out there!") Unable to understand the error

5th Feb 2020, 5:29 PM
Navojit Basu
Navojit Basu - avatar
12 Réponses
+ 1
Navojit Basu please remove the "total...reported" string!
5th Feb 2020, 5:32 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Nothing, just empty string!
5th Feb 2020, 5:33 PM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Thanks a lot done that
5th Feb 2020, 5:35 PM
Navojit Basu
Navojit Basu - avatar
+ 1
Answer is A=input() if(int(A)<int(5)): print("I got this!") elif(int(A)>=int(5) and int(A)<=int(10)): print("Help me Batmam") elif(int(A)>int(10)): print("Good Luck out there!")
19th Feb 2020, 6:11 PM
Jobin Johnson
Jobin Johnson - avatar
0
Okay
5th Feb 2020, 5:32 PM
Navojit Basu
Navojit Basu - avatar
0
Then what will I put there?
5th Feb 2020, 5:33 PM
Navojit Basu
Navojit Basu - avatar
0
Okay sir
5th Feb 2020, 5:34 PM
Navojit Basu
Navojit Basu - avatar
0
I have completed the challenge
5th Feb 2020, 5:35 PM
Navojit Basu
Navojit Basu - avatar
0
Please to help you!
5th Feb 2020, 5:38 PM
Thống Nguyễn
Thống Nguyễn - avatar
0
I am obliged to have a great coder like you
5th Feb 2020, 5:38 PM
Navojit Basu
Navojit Basu - avatar
0
# the solution criminals = input() criminals = int(criminals) if criminals < 5: print("I got this") elif criminals >= 5 and criminals <=10: print("Help me Batman") elif criminals > 10: print("Good Luck out there") #Make sure you use capital letters in the strings
26th Feb 2020, 5:43 PM
Lucifer
Lucifer - avatar
- 1
Please help me
5th Feb 2020, 5:30 PM
Navojit Basu
Navojit Basu - avatar