input
takes only a single string, so to concatenate instead of
cake_amnt = int(input('How many',cake,'would you like to make?'))
You should use format
to build the string
cake_amnt = int(input('How many {} would you like to make?'.format(cake)))
Or use the +
operator to perform concatenation
cake_amnt = int(input('How many ' + cake + ' would you like to make?'))
0
solved Python 3.4 TypeError: input expected at most 1 arguments, got 3