CodePudding user response:
Discount for 5 fold, ignore group purchase conditions, how to doCodePudding user response:
Month=True and judge whether the students=True sale, otherwise not discount!CodePudding user response:
Amount=input (" please enter the full price:)
Type1=input (" is for the students: ")
Month_now=input (" current month:)
Quatity=input (" booking number: ")
List=[' 1 ', '2', '3', '7', '8', '9']
If (month_now in the list and type1=="y") :
Total=int (amount) * int (quatity) * 0.5
The else:
Total=int (amount) * int (quatity)
Print (total)
CodePudding user response:
The right upstairs, had better be type1. The lower ()=='y'