Что написать чтобы: количество товара умножалось бы на его цену (тоже есть в массиве goods, он вложенный, заметьте!) и прибавлялось к суммарной стоимости total. #program Little Internet Shop

users = [
'Anna',
'Bob',
'Veronika',
'Matthew',
'Lucas',
'Vladimir',
'Michael',
'Helena',
]

goods = [
['Apples', 70],
['Bananas', 30],
['Sugar', 45],
['Tea', 50],
['Coffee', 95],
['Ice cream',150],
]

name = input('what is your name: ')

print('Hello, ' + name)

something = input('What do you want to buy: ')

count = input('How many: ')

print('You want to buy ' + str(count) + ' ' + something)

total =

print('It will cost you ' + str(total) + ' rouble(s)')
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2025 SCHOLAR.TIPS - All rights reserved.