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.
5.3m questions
6.9m answers