+ 5

Gotham City

Can someone tell me why I’m not passing Test Case 3 and 4? i = int(input()) if i < 5: print("I got this!") elif i >= 5 and i <= 10: print("Help me Batman") else: print("Good luck out there!")

6th Apr 2020, 5:24 PM
Patrick Triplett
Patrick Triplett - avatar
8 Antworten
+ 6
i = int(input()) if i < 5: print("I got this!") elif i >= 5 and i <= 10: print("Help me Batman") else: print("Good Luck out there!")
6th Apr 2020, 5:40 PM
Cmurio
Cmurio - avatar
+ 5
Hi my name is Felicia
16th May 2020, 12:25 AM
Felicia Pendleton-Soto
Felicia Pendleton-Soto - avatar
+ 1
The l in Luck sold be capital, I guess
6th Apr 2020, 5:35 PM
Taranjeet
Taranjeet - avatar
+ 1
lol well thats annoying but it worked! ty
6th Apr 2020, 5:36 PM
Patrick Triplett
Patrick Triplett - avatar
+ 1
Welcome. It is very frustrating that one is not able to see the test as the test case is hidden. But it is so that nobody cheats.
6th Apr 2020, 5:39 PM
Taranjeet
Taranjeet - avatar
+ 1
Justin Bieber
17th May 2020, 3:23 PM
Felicia Pendleton-Soto
Felicia Pendleton-Soto - avatar
+ 1
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner s = new Scanner(System.in); int criminals = s.nextInt(); if(criminals<5){ System.out.println("I got this!"); }else if(criminals>=5 && criminals<=10){ System.out.println("Help me Batman"); }else if(criminals>10){ System.out.println("Good Luck out there!"); } } } i had the same problem and then i realised that You have to be extra carefull when outputing the answer because it is case sensitive I got this! // I is capital and ! mark at the end Help me Batman// H && B are capital in batman Good Luck out there! // G and L are capital and ! mark at the end
7th Apr 2022, 1:56 PM
Amir Ahmad
Amir Ahmad - avatar
0
thats fair, integrity is crucial to really understanding programming
6th Apr 2020, 5:40 PM
Patrick Triplett
Patrick Triplett - avatar