0
Cant get it to Print The IF
I cant get it to print If 'Y', HELP? def computeRate(numDays, plan): if plan == 'A': return numDays * 169 elif plan == 'C': return numDays * 112 else: return numDays * 99.99 if __name__ == '__main__': rate = 0.0 dayString = input('How many days do you plan to stay? ') days = int(dayString) question = input('Do you want a meal plan? Y or N') plan = '' if question == 'Y': plan = input('Enter your plan type: ') print('Total rate is $%.2f' % computeRate(days, plan))
2 Réponses
0
I have to write this through mindtap and its saying its incorrect. But i know it works