+ 2
How to solve both cases at same time gothem city question
How to solve both cases at same time if one in correct other in wrong total_number_ofcriminals = int(input ()) n = total_number_ofcriminals if n < 5: print ("I got this!") elif n < 10: print ("Help me Batman") elif n > 10: print ("Good Luck out there")
3 Antworten
+ 7
Each test case runs with a different input number. The test will take care of giving the right number, but your code needs to accept it. Try like this:
n = int(input())
+ 2
Tibor Santa Thanks bro i have solved it thanks to you