New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Why is it not working
2 Answers
+ 4
String should be converted to int to compare it with 5
line#2 should be
if int(x) > 5 :
+ 3
input() returns a string you need to convert it to int. Which is int(input())