Why is it not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
21st Mar 2020, 4:28 PM
Gaurav Chanda
Gaurav Chanda - avatar
2 Answers
+ 4
String should be converted to int to compare it with 5 line#2 should be if int(x) > 5 :
21st Mar 2020, 4:33 PM
andriy kan
andriy kan - avatar
+ 3
input() returns a string you need to convert it to int. Which is int(input())
21st Mar 2020, 4:32 PM
你知道規則,我也是
你知道規則,我也是 - avatar