#School Final Exam, 'make a python pizza ordering thing'

18 messages · Page 1 of 1 (latest)

sonic sandal
#

I have this project due Friday and I am stuck on how I'm supposed to create the price for the pizzas according to size.'

WHAT I GOT: cost = {'S': 6.00, 'M': 8.00, 'L': 10.00}

My teacher claims the {} used is only for grade 11 and up coding and I'm in grade 10. Is there any other way to create the price for the pizzas without using the {}'s.

frigid cloak
#

You're not allowed to use dictionaries??

sonic sandal
frigid cloak
#

Have you learned lists?

#

You could just have 2 lists

sonic sandal
frigid cloak
#

Have you learned any data types then?

#

That's kinda weird that you'd have to use nested loops without any data types?

sonic sandal
frigid cloak
#

What's the original assignment for the project?

sonic sandal
#

its called 'Pizza, Sub or sandwich challenge".

frigid cloak
#

No instructions or anything?

sonic sandal
#

They just told us too make it have a menu, size of the food and price, toppings and price of toppings

#

and to calculate the total price after everything

frigid cloak
#

So basically you don't have to have any lists/dicts/tuples for that

#

You get user input, and based on what size that is, you do the calculations

#

Initialize one variable as an integer for the total sum, and add the cost of the pizza, according to size to that, and just print that variable at the end after everything is done

sonic sandal
#

okok sounds good, thank you!