+ 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!")
8 Respuestas
+ 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!")
+ 5
Hi my name is Felicia
+ 1
The l in Luck sold be capital, I guess
+ 1
lol well thats annoying but it worked! ty
+ 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.
+ 1
Justin Bieber
+ 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
0
thats fair, integrity is crucial to really understanding programming