num = float(input('Enter a number: '))
if num > 45.6:
print('Greater than 45.6')
I wrote my code in python 3.8. I hope this helps.
7.8m questions
10.4m answers