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.
9.3m questions
12.0m answers