+ 1
What's wrong with this py code? Please help me!
So I want to get the input value and then if it's greater then print cannot go higher but if it's less than 10 then print perfect, so how can I do that? https://sololearn.com/compiler-playground/cV05ZcB6EbdF/?ref=app
6 Answers
+ 5
it is
num >= 10
instead of
num = >10
and the indentation is wrong. Indentation is crucial in Python
+ 1
Thanks a lot !
+ 1
Thanks bro!
0
Yaser Bakhshi I think wrong code, bro đ
0
num = int(input())
if num > 10:
print("cannot go higher!")
else:
print("Perfect!")