@mhs_mhs123/

Butcher Shop Demo

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
print('Welcome to the butcher shop')
typeofmeat = input('What kind of meat will you like to buy today?')



if typeofmeat == 'chicken':
	print('chicken is $5 per kg')
	amtofchicken = input('How many kg of chicken would you like to buy?')
	costofchicken = int(amtofchicken) * 5
	print('you bought '+ amtofchicken)
	print('the chicken cost you $ ' + str(costofchicken))
elif typeofmeat == 'beef':
	print('beef is $7 per kg')
	amtofbeef = input('How many kg of beef would you like to buy?')
	costofbeef = int(amtofbeef) * 7
	print('You bought '+ amtofbeef)
	print('the beef cost you $ ' + str(costofbeef))
elif typeofmeat == 'lamb':
	print('lamb is $10 per kg')
	amtoflamb = input('How many kg of lamb would you like to order?')
	costoflamb = int(amtoflamb) * 10
	print('you bought '+ amtoflamb)
	print('the lamb cost you $ ' + str(costoflamb))
elif typeofmeat == 'veal':
	print('veal is $15 per kg')
	amtofveal = input('How many kg of veal would you like to order?')
	costofveal = int(amtofveal) * 15
	print('the veal cost you $ ' + str(costofveal))