我or
在函数中遇到问题。无论值是什么,该if
语句都会持续评估。当我删除 时,工作正常。True
choice
or
if
def chooseDim ():
**choice = input ('Do you need to find radius or area? ')
if choice == 'A' or 'a':**
area = 0
area = int(area)
areaSol ()
elif choice == 'R' or 'r':
radSol ()
else:
print ('Please enter either A/a or R/r.')
chooseDim ()