Write nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2.
this is what I have so far:
amount1=print('Enter amount1:')
amount2=print('Enter amount2:')
if amount1> 10 and amount2< 100:
if amount1>amount2:
print('amount1 is greater')
elif amount2>amount1:
print('amount2 is greater')
else:
print('Amounts not in valid range')
when I run the program, this error message comes up:
Traceback (most recent call last):
File "/Users/Yun/Documents/untitled", line 3, in <module>
if amount1> 10 and amount2< 100:
TypeError: unorderable types: NoneType() > int()