2024-05-14 04:21:22 发布
网友
在65整数文本之前的=符号出现语法错误。有人能帮我弄清楚怎么纠正这个语法错误吗
65
=
age = int(input('Age? ')) if age <= 15 or >= 65: print('Discount Applied.') else: print('Discount ineligible.')
您需要在条件中再次指定age:
age
age = int(input('Age? ')) if age <= 15 or age >= 65: # ...
age = int(input('Age? ')) if 15 < age < 65: print('Discount ineligible.') else: print('Discount Applied.')
您需要在条件中再次指定
age
:相关问题 更多 >
编程相关推荐