I am trying to take a list of items, each with different amounts and calculate how many of all of the items are needed, based on user input.
For example, a grocery list for a dinner based on how many guest are coming. (5 carrots, 3 onions, 4 peppers, 2 hot dogs, and 1 pound of hamburger) per guest. So the user will input how many guests will be attending and and the item counts will be multiplied based on the input and print that value.
I am new to python, although I know this is a simple problem and I have covered this before, I have spent the past two days trying to get ready for a test and think that I am over-thinking it, because I cant even come close -- so frustrating knowing that once I see it, or something similar it will click. Any help is appreciated. I know that syntax is wrong and everything is messed up, I just typed this up real quick to illustrate a general idea of what I am trying to do. Thanks again.
groc_list= int(input('Enter number of students: ')
carrots= (groc_list* 5)
onions= (groc_list* 3)
peppers= (groc_list* 4)
hot_dogs= (groc_list* 2)
hamburger= (groc_list* 1)
print('You will need', carrots, 'onions', peppers, 'hot dogs', pounds of hamburger')
'in your print statement that might be causing syntax issue