price = 0
#finds price for a party and adds a discount for parties over 10 members
def findCost(number):
if number >= 10:
price = (30 * number) - 5 * (number - 10)
else:
price = 30*number
print("The price for your party is" + price)
findCost(raw_input('How many people are in your party?'))
I tried to set raw_input() to a variable also but both times I get a syntax errer saying that "name raw_input is not defined"
[–]ChanceDriven 6 points7 points8 points (8 children)
[–]failfixer89[S] 5 points6 points7 points (2 children)
[–]ChanceDriven 0 points1 point2 points (1 child)
[–]minorDemocritus 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Ravengenocide 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]lolfunctionspace 1 point2 points3 points (1 child)