Skip to content

Commit a57c304

Browse files
PrashantPrashant
Prashant
authored and
Prashant
committedJul 22, 2022
Making of Coffee machine program
1 parent a18eb4c commit a57c304

25 files changed

+2365
-10
lines changed
 

‎.history/CoffeeMachine_20220722215220.py

Whitespace-only changes.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
if coffee ==
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
def data():
7+
8+
9+
if coffee == '1':
10+
print
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
cl_1 = {
7+
"name": "Espressco Coffee",
8+
"water": "200ml",
9+
"milk": "200ml",
10+
"money": "$0.25",
11+
}
12+
13+
cl_2 = {
14+
"name": "Latte Coffee",
15+
"water": "200ml",
16+
"milk": "200ml",
17+
"money": "$0.75",
18+
}
19+
20+
cl_3 = {
21+
"name": "Cappuciono Coffee",
22+
"water": "200ml",
23+
"milk": "200ml",
24+
"money": "$1",
25+
}
26+
27+
if coffee == '1':
28+
print (cl_1)
29+
elif coffee == '2':
30+
print (cl_2)
31+
elif coffee == '3':
32+
print (cl_3)
33+
34+
store = {
35+
"Water": 2000,
36+
"milk": 2000,
37+
"money": 10,
38+
}
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
cl_1 = {
7+
"name": "Espressco Coffee",
8+
"water": "200ml",
9+
"milk": "200ml",
10+
"money": "$0.25",
11+
}
12+
13+
cl_2 = {
14+
"name": "Latte Coffee",
15+
"water": "200ml",
16+
"milk": "200ml",
17+
"money": "$0.75",
18+
}
19+
20+
cl_3 = {
21+
"name": "Cappuciono Coffee",
22+
"water": "200ml",
23+
"milk": "200ml",
24+
"money": "$1",
25+
}
26+
27+
store = {
28+
"Water": 2000,
29+
"Milk": 2000,
30+
"Money": 10,
31+
}
32+
33+
print (cl_3)
34+
print (cl_3[1])
35+
36+
# if coffee == '1':
37+
# print (cl_1)
38+
# report = input("Want to check resource? y/n: ")
39+
# if report == 'y':
40+
# print (store)
41+
# else :
42+
# money = cl_3[1]
43+
# elif coffee == '2':
44+
# print (cl_2)
45+
# elif coffee == '3':
46+
# print (cl_3)
47+
48+
# store = {
49+
# "Water": 2000,
50+
# "Milk": 2000,
51+
# "Money": 10,
52+
# }
53+
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
list = {
7+
"name": "Espressco Coffee",
8+
"water": "200ml",
9+
"milk": "200ml",
10+
"money": "$0.25",
11+
}
12+
{
13+
"name": "Latte Coffee",
14+
"water": "200ml",
15+
"milk": "200ml",
16+
"money": "$0.75",
17+
}
18+
{
19+
"name": "Cappuciono Coffee",
20+
"water": "200ml",
21+
"milk": "200ml",
22+
"money": "$1",
23+
}
24+
25+
store = {
26+
"Water": 2000,
27+
"Milk": 2000,
28+
"Money": 10,
29+
}
30+
31+
if coffee == '1':
32+
print (cl_1)
33+
report = input("Want to check resource? y/n: ")
34+
if report == 'y':
35+
print (store)
36+
else :
37+
money = cl_3[1]
38+
elif coffee == '2':
39+
print (cl_2)
40+
elif coffee == '3':
41+
print (cl_3)
42+
43+
store = {
44+
"Water": 2000,
45+
"Milk": 2000,
46+
"Money": 10,
47+
}
48+
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
list = {
7+
"name": "Espressco Coffee",
8+
"water": "200ml",
9+
"milk": "200ml",
10+
"money": "$0.25",
11+
}
12+
{
13+
"name": "Latte Coffee",
14+
"water": "200ml",
15+
"milk": "200ml",
16+
"money": "$0.75",
17+
}
18+
{
19+
"name": "Cappuciono Coffee",
20+
"water": "200ml",
21+
"milk": "200ml",
22+
"money": "$1",
23+
}
24+
25+
store = {
26+
"Water": 2000,
27+
"Milk": 2000,
28+
"Money": 0,
29+
"Coffee": 100,
30+
}
31+
32+
if coffee == '1':
33+
print ()
34+
report = input("Want to check resource? y/n: ")
35+
if report == 'y':
36+
print (f"Milk {store[Milk]}")
37+
print (f"Water {store[Water]}")
38+
print (f"Coffee {store[Coffee]}")
39+
print (f"Money {store[Money]}")
40+
else :
41+
42+
# elif coffee == '2':
43+
# elif coffee == '3':
44+
45+
# store = {
46+
# "Water": 2000,
47+
# "Milk": 2000,
48+
# "Money": 10,
49+
# }
50+
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
coffee_list = {"1":"espressco", "2":"latte","3": "cappuciouno"}
2+
3+
print (f"We have {coffee_list}")
4+
coffee = input("What you would like to have?")
5+
6+
list = {
7+
"name": "Espressco Coffee",
8+
"water": "200ml",
9+
"milk": "200ml",
10+
"money": "$0.25",
11+
}
12+
{
13+
"name": "Latte Coffee",
14+
"water": "200ml",
15+
"milk": "200ml",
16+
"money": "$0.75",
17+
}
18+
{
19+
"name": "Cappuciono Coffee",
20+
"water": "200ml",
21+
"milk": "200ml",
22+
"money": "$1",
23+
}
24+
25+
store = {
26+
"Water": 2000,
27+
"Milk": 2000,
28+
"Money": 0,
29+
"Coffee": 100,
30+
}
31+
32+
if coffee == '1':
33+
print ()
34+
report = input("Want to check resource? y/n: ")
35+
if report == 'y':
36+
print (f"Milk {store[Milk]}")
37+
print (f"Water {store[Water]}")
38+
print (f"Coffee {store[Coffee]}")
39+
print (f"Money {store[Money]}")
40+
41+
# elif coffee == '2':
42+
# elif coffee == '3':
43+
44+
# store = {
45+
# "Water": 2000,
46+
# "Milk": 2000,
47+
# "Money": 10,
48+
# }
+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
MENU = {
2+
"espresso": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 1.5,
8+
},
9+
"latte": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 2.5,
16+
},
17+
"cappuccino": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 3.0,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
total = int(input("how many quarters?: ")) * 0.25
48+
total += int(input("how many dimes?: ")) * 0.1
49+
total += int(input("how many nickles?: ")) * 0.05
50+
total += int(input("how many pennies?: ")) * 0.01
51+
return total
52+
53+
54+
def is_transaction_successful(money_received, drink_cost):
55+
"""Return True when the payment is accepted, or False if money is insufficient."""
56+
if money_received >= drink_cost:
57+
change = round(money_received - drink_cost, 2)
58+
print(f"Here is ${change} in change.")
59+
global profit
60+
profit += drink_cost
61+
return True
62+
else:
63+
print("Sorry that's not enough money. Money refunded.")
64+
return False
65+
66+
67+
def make_coffee(drink_name, order_ingredients):
68+
"""Deduct the required ingredients from the resources."""
69+
for item in order_ingredients:
70+
resources[item] -= order_ingredients[item]
71+
print(f"Here is your {drink_name} ☕️. Enjoy!")
72+
73+
74+
is_on = True
75+
76+
while is_on:
77+
choice = input("​What would you like? (espresso/latte/cappuccino): ")
78+
if choice == "off":
79+
is_on = False
80+
elif choice == "report":
81+
print(f"Water: {resources['water']}ml")
82+
print(f"Milk: {resources['milk']}ml")
83+
print(f"Coffee: {resources['coffee']}g")
84+
print(f"Money: ${profit}")
85+
else:
86+
drink = MENU[choice]
87+
if is_resource_sufficient(drink["ingredients"]):
88+
payment = process_coins()
89+
if is_transaction_successful(payment, drink["cost"]):
90+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? 1. UPI \n 2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("how many 1 Rupee Coins?: ")) * 1
52+
total += int(input("how many 2 Rupees Coins?: ")) * 2
53+
total += int(input("how many 5 Rupees Coins?: ")) * 5
54+
total += int(input("how many 10 Rupees Coins?: ")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is ${change} in change.")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? (1. espresso \n2. latte \n3.cappuccino): \n4. Off \n5. Report")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? 1. UPI \n 2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("how many 1 Rupee Coins?: ")) * 1
52+
total += int(input("how many 2 Rupees Coins?: ")) * 2
53+
total += int(input("how many 5 Rupees Coins?: ")) * 5
54+
total += int(input("how many 10 Rupees Coins?: ")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is ${change} in change.")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? (1. espresso \n2. latte \n3.cappuccino): \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? 1. UPI \n 2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("how many 1 Rupee Coins?: ")) * 1
52+
total += int(input("how many 2 Rupees Coins?: ")) * 2
53+
total += int(input("how many 5 Rupees Coins?: ")) * 5
54+
total += int(input("how many 10 Rupees Coins?: ")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is ${change} in change.")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. espresso \n2. latte \n3.cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? 1. UPI \n 2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("how many 1 Rupee Coins?: ")) * 1
52+
total += int(input("how many 2 Rupees Coins?: ")) * 2
53+
total += int(input("how many 5 Rupees Coins?: ")) * 5
54+
total += int(input("how many 10 Rupees Coins?: ")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is ${change} in change.")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. Espresso \n2. Latte \n3. Cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? \n1. UPI \n 2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("how many 1 Rupee Coins?: ")) * 1
52+
total += int(input("how many 2 Rupees Coins?: ")) * 2
53+
total += int(input("how many 5 Rupees Coins?: ")) * 5
54+
total += int(input("how many 10 Rupees Coins?: ")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is ${change} in change.")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. Espresso \n2. Latte \n3. Cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? \n1. UPI \n2. Coins")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("How many 1 Rupee Coins?: ")) * 1
52+
total += int(input("How many 2 Rupees Coins?: ")) * 2
53+
total += int(input("How many 5 Rupees Coins?: ")) * 5
54+
total += int(input("How many 10 Rupees Coins?: \n")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is Rs.{change} in change.\n")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.\n")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. Espresso \n2. Latte \n3. Cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? \n1. UPI \n2. Coins\n")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("How many 1 Rupee Coins?: ")) * 1
52+
total += int(input("How many 2 Rupees Coins?: ")) * 2
53+
total += int(input("How many 5 Rupees Coins?: ")) * 5
54+
total += int(input("How many 10 Rupees Coins?: \n")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is Rs.{change} in change.\n")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.\n")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. Espresso \n2. Latte \n3. Cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])

‎.history/High_low_Game_20220721233037.py

-2
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@
324324
}
325325
]
326326

327-
import random
328-
329327
def get_random_account():
330328
"""Get data from random account"""
331329
return random.choice(data)
+383
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,383 @@
1+
import random
2+
3+
4+
logo = """
5+
__ ___ __
6+
/ / / (_)___ _/ /_ ___ _____
7+
/ /_/ / / __ `/ __ \/ _ \/ ___/
8+
/ __ / / /_/ / / / / __/ /
9+
/_/ ///_/\__, /_/ /_/\___/_/
10+
/ / /____/_ _____ _____
11+
/ / / __ \ | /| / / _ \/ ___/
12+
/ /___/ /_/ / |/ |/ / __/ /
13+
/_____/\____/|__/|__/\___/_/
14+
"""
15+
16+
vs = """
17+
_ __
18+
| | / /____
19+
| | / / ___/
20+
| |/ (__ )
21+
|___/____(_)
22+
"""
23+
24+
data = [
25+
{
26+
'name': 'Instagram',
27+
'follower_count': 346,
28+
'description': 'Social media platform',
29+
'country': 'United States'
30+
},
31+
{
32+
'name': 'Cristiano Ronaldo',
33+
'follower_count': 215,
34+
'description': 'Footballer',
35+
'country': 'Portugal'
36+
},
37+
{
38+
'name': 'Ariana Grande',
39+
'follower_count': 183,
40+
'description': 'Musician and actress',
41+
'country': 'United States'
42+
},
43+
{
44+
'name': 'Dwayne Johnson',
45+
'follower_count': 181,
46+
'description': 'Actor and professional wrestler',
47+
'country': 'United States'
48+
},
49+
{
50+
'name': 'Selena Gomez',
51+
'follower_count': 174,
52+
'description': 'Musician and actress',
53+
'country': 'United States'
54+
},
55+
{
56+
'name': 'Kylie Jenner',
57+
'follower_count': 172,
58+
'description': 'Reality TV personality and businesswoman and Self-Made Billionaire',
59+
'country': 'United States'
60+
},
61+
{
62+
'name': 'Kim Kardashian',
63+
'follower_count': 167,
64+
'description': 'Reality TV personality and businesswoman',
65+
'country': 'United States'
66+
},
67+
{
68+
'name': 'Lionel Messi',
69+
'follower_count': 149,
70+
'description': 'Footballer',
71+
'country': 'Argentina'
72+
},
73+
{
74+
'name': 'Beyoncé',
75+
'follower_count': 145,
76+
'description': 'Musician',
77+
'country': 'United States'
78+
},
79+
{
80+
'name': 'Neymar',
81+
'follower_count': 138,
82+
'description': 'Footballer',
83+
'country': 'Brasil'
84+
},
85+
{
86+
'name': 'National Geographic',
87+
'follower_count': 135,
88+
'description': 'Magazine',
89+
'country': 'United States'
90+
},
91+
{
92+
'name': 'Justin Bieber',
93+
'follower_count': 133,
94+
'description': 'Musician',
95+
'country': 'Canada'
96+
},
97+
{
98+
'name': 'Taylor Swift',
99+
'follower_count': 131,
100+
'description': 'Musician',
101+
'country': 'United States'
102+
},
103+
{
104+
'name': 'Kendall Jenner',
105+
'follower_count': 127,
106+
'description': 'Reality TV personality and Model',
107+
'country': 'United States'
108+
},
109+
{
110+
'name': 'Jennifer Lopez',
111+
'follower_count': 119,
112+
'description': 'Musician and actress',
113+
'country': 'United States'
114+
},
115+
{
116+
'name': 'Nicki Minaj',
117+
'follower_count': 113,
118+
'description': 'Musician',
119+
'country': 'Trinidad and Tobago'
120+
},
121+
{
122+
'name': 'Nike',
123+
'follower_count': 109,
124+
'description': 'Sportswear multinational',
125+
'country': 'United States'
126+
},
127+
{
128+
'name': 'Khloé Kardashian',
129+
'follower_count': 108,
130+
'description': 'Reality TV personality and businesswoman',
131+
'country': 'United States'
132+
},
133+
{
134+
'name': 'Miley Cyrus',
135+
'follower_count': 107,
136+
'description': 'Musician and actress',
137+
'country': 'United States'
138+
},
139+
{
140+
'name': 'Katy Perry',
141+
'follower_count': 94,
142+
'description': 'Musician',
143+
'country': 'United States'
144+
},
145+
{
146+
'name': 'Kourtney Kardashian',
147+
'follower_count': 90,
148+
'description': 'Reality TV personality',
149+
'country': 'United States'
150+
},
151+
{
152+
'name': 'Kevin Hart',
153+
'follower_count': 89,
154+
'description': 'Comedian and actor',
155+
'country': 'United States'
156+
},
157+
{
158+
'name': 'Ellen DeGeneres',
159+
'follower_count': 87,
160+
'description': 'Comedian',
161+
'country': 'United States'
162+
},
163+
{
164+
'name': 'Real Madrid CF',
165+
'follower_count': 86,
166+
'description': 'Football club',
167+
'country': 'Spain'
168+
},
169+
{
170+
'name': 'FC Barcelona',
171+
'follower_count': 85,
172+
'description': 'Football club',
173+
'country': 'Spain'
174+
},
175+
{
176+
'name': 'Rihanna',
177+
'follower_count': 81,
178+
'description': 'Musician and businesswoman',
179+
'country': 'Barbados'
180+
},
181+
{
182+
'name': 'Demi Lovato',
183+
'follower_count': 80,
184+
'description': 'Musician and actress',
185+
'country': 'United States'
186+
},
187+
{
188+
'name': "Victoria's Secret",
189+
'follower_count': 69,
190+
'description': 'Lingerie brand',
191+
'country': 'United States'
192+
},
193+
{
194+
'name': 'Zendaya',
195+
'follower_count': 68,
196+
'description': 'Actress and musician',
197+
'country': 'United States'
198+
},
199+
{
200+
'name': 'Shakira',
201+
'follower_count': 66,
202+
'description': 'Musician',
203+
'country': 'Colombia'
204+
},
205+
{
206+
'name': 'Drake',
207+
'follower_count': 65,
208+
'description': 'Musician',
209+
'country': 'Canada'
210+
},
211+
{
212+
'name': 'Chris Brown',
213+
'follower_count': 64,
214+
'description': 'Musician',
215+
'country': 'United States'
216+
},
217+
{
218+
'name': 'LeBron James',
219+
'follower_count': 63,
220+
'description': 'Basketball player',
221+
'country': 'United States'
222+
},
223+
{
224+
'name': 'Vin Diesel',
225+
'follower_count': 62,
226+
'description': 'Actor',
227+
'country': 'United States'
228+
},
229+
{
230+
'name': 'Cardi B',
231+
'follower_count': 67,
232+
'description': 'Musician',
233+
'country': 'United States'
234+
},
235+
{
236+
'name': 'David Beckham',
237+
'follower_count': 82,
238+
'description': 'Footballer',
239+
'country': 'United Kingdom'
240+
},
241+
{
242+
'name': 'Billie Eilish',
243+
'follower_count': 61,
244+
'description': 'Musician',
245+
'country': 'United States'
246+
},
247+
{
248+
'name': 'Justin Timberlake',
249+
'follower_count': 59,
250+
'description': 'Musician and actor',
251+
'country': 'United States'
252+
},
253+
{
254+
'name': 'UEFA Champions League',
255+
'follower_count': 58,
256+
'description': 'Club football competition',
257+
'country': 'Europe'
258+
},
259+
{
260+
'name': 'NASA',
261+
'follower_count': 56,
262+
'description': 'Space agency',
263+
'country': 'United States'
264+
},
265+
{
266+
'name': 'Emma Watson',
267+
'follower_count': 56,
268+
'description': 'Actress',
269+
'country': 'United Kingdom'
270+
},
271+
{
272+
'name': 'Shawn Mendes',
273+
'follower_count': 57,
274+
'description': 'Musician',
275+
'country': 'Canada'
276+
},
277+
{
278+
'name': 'Virat Kohli',
279+
'follower_count': 55,
280+
'description': 'Cricketer',
281+
'country': 'India'
282+
},
283+
{
284+
'name': 'Gigi Hadid',
285+
'follower_count': 54,
286+
'description': 'Model',
287+
'country': 'United States'
288+
},
289+
{
290+
'name': 'Priyanka Chopra Jonas',
291+
'follower_count': 53,
292+
'description': 'Actress and musician',
293+
'country': 'India'
294+
},
295+
{
296+
'name': '9GAG',
297+
'follower_count': 52,
298+
'description': 'Social media platform',
299+
'country': 'China'
300+
},
301+
{
302+
'name': 'Ronaldinho',
303+
'follower_count': 51,
304+
'description': 'Footballer',
305+
'country': 'Brasil'
306+
},
307+
{
308+
'name': 'Maluma',
309+
'follower_count': 50,
310+
'description': 'Musician',
311+
'country': 'Colombia'
312+
},
313+
{
314+
'name': 'Camila Cabello',
315+
'follower_count': 49,
316+
'description': 'Musician',
317+
'country': 'Cuba'
318+
},
319+
{
320+
'name': 'NBA',
321+
'follower_count': 47,
322+
'description': 'Club Basketball Competition',
323+
'country': 'United States'
324+
}
325+
]
326+
327+
def get_random_account():
328+
"""Get data from random account"""
329+
return random.choice(data)
330+
331+
def format_data(account):
332+
"""Format account into printable format: name, description and country"""
333+
name = account["name"]
334+
description = account["description"]
335+
country = account["country"]
336+
print(f'{name}: {account["follower_count"]}')
337+
return f"{name}, a {description}, from {country}"
338+
339+
def check_answer(guess, a_followers, b_followers):
340+
"""Checks followers against user's guess
341+
and returns True if they got it right.
342+
Or False if they got it wrong."""
343+
if a_followers > b_followers:
344+
return guess == "a"
345+
else:
346+
return guess == "b"
347+
348+
349+
def game():
350+
print(logo)
351+
score = 0
352+
game_should_continue = True
353+
account_a = get_random_account()
354+
account_b = get_random_account()
355+
356+
while game_should_continue:
357+
account_a = account_b
358+
account_b = get_random_account()
359+
360+
while account_a == account_b:
361+
account_b = get_random_account()
362+
363+
print(f"Compare A: {format_data(account_a)}.")
364+
print(vs)
365+
print(f"Against B: {format_data(account_b)}.")
366+
367+
guess = input("Who has more followers? Type 'A' or 'B': ").lower()
368+
a_follower_count = account_a["follower_count"]
369+
b_follower_count = account_b["follower_count"]
370+
is_correct = check_answer(guess, a_follower_count, b_follower_count)
371+
372+
print(logo)
373+
if is_correct:
374+
score += 1
375+
print(f"You're right! Current score: {score}.")
376+
else:
377+
game_should_continue = False
378+
print(f"Sorry, that's wrong. Final score: {score}")
379+
play = input("Dow want to restart? y/n")
380+
381+
play = input("Do you want to start? y/n")
382+
while play == 'y':
383+
game()
+383
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,383 @@
1+
import random
2+
3+
4+
logo = """
5+
__ ___ __
6+
/ / / (_)___ _/ /_ ___ _____
7+
/ /_/ / / __ `/ __ \/ _ \/ ___/
8+
/ __ / / /_/ / / / / __/ /
9+
/_/ ///_/\__, /_/ /_/\___/_/
10+
/ / /____/_ _____ _____
11+
/ / / __ \ | /| / / _ \/ ___/
12+
/ /___/ /_/ / |/ |/ / __/ /
13+
/_____/\____/|__/|__/\___/_/
14+
"""
15+
16+
vs = """
17+
_ __
18+
| | / /____
19+
| | / / ___/
20+
| |/ (__ )
21+
|___/____(_)
22+
"""
23+
24+
data = [
25+
{
26+
'name': 'Instagram',
27+
'follower_count': 346,
28+
'description': 'Social media platform',
29+
'country': 'United States'
30+
},
31+
{
32+
'name': 'Cristiano Ronaldo',
33+
'follower_count': 215,
34+
'description': 'Footballer',
35+
'country': 'Portugal'
36+
},
37+
{
38+
'name': 'Ariana Grande',
39+
'follower_count': 183,
40+
'description': 'Musician and actress',
41+
'country': 'United States'
42+
},
43+
{
44+
'name': 'Dwayne Johnson',
45+
'follower_count': 181,
46+
'description': 'Actor and professional wrestler',
47+
'country': 'United States'
48+
},
49+
{
50+
'name': 'Selena Gomez',
51+
'follower_count': 174,
52+
'description': 'Musician and actress',
53+
'country': 'United States'
54+
},
55+
{
56+
'name': 'Kylie Jenner',
57+
'follower_count': 172,
58+
'description': 'Reality TV personality and businesswoman and Self-Made Billionaire',
59+
'country': 'United States'
60+
},
61+
{
62+
'name': 'Kim Kardashian',
63+
'follower_count': 167,
64+
'description': 'Reality TV personality and businesswoman',
65+
'country': 'United States'
66+
},
67+
{
68+
'name': 'Lionel Messi',
69+
'follower_count': 149,
70+
'description': 'Footballer',
71+
'country': 'Argentina'
72+
},
73+
{
74+
'name': 'Beyoncé',
75+
'follower_count': 145,
76+
'description': 'Musician',
77+
'country': 'United States'
78+
},
79+
{
80+
'name': 'Neymar',
81+
'follower_count': 138,
82+
'description': 'Footballer',
83+
'country': 'Brasil'
84+
},
85+
{
86+
'name': 'National Geographic',
87+
'follower_count': 135,
88+
'description': 'Magazine',
89+
'country': 'United States'
90+
},
91+
{
92+
'name': 'Justin Bieber',
93+
'follower_count': 133,
94+
'description': 'Musician',
95+
'country': 'Canada'
96+
},
97+
{
98+
'name': 'Taylor Swift',
99+
'follower_count': 131,
100+
'description': 'Musician',
101+
'country': 'United States'
102+
},
103+
{
104+
'name': 'Kendall Jenner',
105+
'follower_count': 127,
106+
'description': 'Reality TV personality and Model',
107+
'country': 'United States'
108+
},
109+
{
110+
'name': 'Jennifer Lopez',
111+
'follower_count': 119,
112+
'description': 'Musician and actress',
113+
'country': 'United States'
114+
},
115+
{
116+
'name': 'Nicki Minaj',
117+
'follower_count': 113,
118+
'description': 'Musician',
119+
'country': 'Trinidad and Tobago'
120+
},
121+
{
122+
'name': 'Nike',
123+
'follower_count': 109,
124+
'description': 'Sportswear multinational',
125+
'country': 'United States'
126+
},
127+
{
128+
'name': 'Khloé Kardashian',
129+
'follower_count': 108,
130+
'description': 'Reality TV personality and businesswoman',
131+
'country': 'United States'
132+
},
133+
{
134+
'name': 'Miley Cyrus',
135+
'follower_count': 107,
136+
'description': 'Musician and actress',
137+
'country': 'United States'
138+
},
139+
{
140+
'name': 'Katy Perry',
141+
'follower_count': 94,
142+
'description': 'Musician',
143+
'country': 'United States'
144+
},
145+
{
146+
'name': 'Kourtney Kardashian',
147+
'follower_count': 90,
148+
'description': 'Reality TV personality',
149+
'country': 'United States'
150+
},
151+
{
152+
'name': 'Kevin Hart',
153+
'follower_count': 89,
154+
'description': 'Comedian and actor',
155+
'country': 'United States'
156+
},
157+
{
158+
'name': 'Ellen DeGeneres',
159+
'follower_count': 87,
160+
'description': 'Comedian',
161+
'country': 'United States'
162+
},
163+
{
164+
'name': 'Real Madrid CF',
165+
'follower_count': 86,
166+
'description': 'Football club',
167+
'country': 'Spain'
168+
},
169+
{
170+
'name': 'FC Barcelona',
171+
'follower_count': 85,
172+
'description': 'Football club',
173+
'country': 'Spain'
174+
},
175+
{
176+
'name': 'Rihanna',
177+
'follower_count': 81,
178+
'description': 'Musician and businesswoman',
179+
'country': 'Barbados'
180+
},
181+
{
182+
'name': 'Demi Lovato',
183+
'follower_count': 80,
184+
'description': 'Musician and actress',
185+
'country': 'United States'
186+
},
187+
{
188+
'name': "Victoria's Secret",
189+
'follower_count': 69,
190+
'description': 'Lingerie brand',
191+
'country': 'United States'
192+
},
193+
{
194+
'name': 'Zendaya',
195+
'follower_count': 68,
196+
'description': 'Actress and musician',
197+
'country': 'United States'
198+
},
199+
{
200+
'name': 'Shakira',
201+
'follower_count': 66,
202+
'description': 'Musician',
203+
'country': 'Colombia'
204+
},
205+
{
206+
'name': 'Drake',
207+
'follower_count': 65,
208+
'description': 'Musician',
209+
'country': 'Canada'
210+
},
211+
{
212+
'name': 'Chris Brown',
213+
'follower_count': 64,
214+
'description': 'Musician',
215+
'country': 'United States'
216+
},
217+
{
218+
'name': 'LeBron James',
219+
'follower_count': 63,
220+
'description': 'Basketball player',
221+
'country': 'United States'
222+
},
223+
{
224+
'name': 'Vin Diesel',
225+
'follower_count': 62,
226+
'description': 'Actor',
227+
'country': 'United States'
228+
},
229+
{
230+
'name': 'Cardi B',
231+
'follower_count': 67,
232+
'description': 'Musician',
233+
'country': 'United States'
234+
},
235+
{
236+
'name': 'David Beckham',
237+
'follower_count': 82,
238+
'description': 'Footballer',
239+
'country': 'United Kingdom'
240+
},
241+
{
242+
'name': 'Billie Eilish',
243+
'follower_count': 61,
244+
'description': 'Musician',
245+
'country': 'United States'
246+
},
247+
{
248+
'name': 'Justin Timberlake',
249+
'follower_count': 59,
250+
'description': 'Musician and actor',
251+
'country': 'United States'
252+
},
253+
{
254+
'name': 'UEFA Champions League',
255+
'follower_count': 58,
256+
'description': 'Club football competition',
257+
'country': 'Europe'
258+
},
259+
{
260+
'name': 'NASA',
261+
'follower_count': 56,
262+
'description': 'Space agency',
263+
'country': 'United States'
264+
},
265+
{
266+
'name': 'Emma Watson',
267+
'follower_count': 56,
268+
'description': 'Actress',
269+
'country': 'United Kingdom'
270+
},
271+
{
272+
'name': 'Shawn Mendes',
273+
'follower_count': 57,
274+
'description': 'Musician',
275+
'country': 'Canada'
276+
},
277+
{
278+
'name': 'Virat Kohli',
279+
'follower_count': 55,
280+
'description': 'Cricketer',
281+
'country': 'India'
282+
},
283+
{
284+
'name': 'Gigi Hadid',
285+
'follower_count': 54,
286+
'description': 'Model',
287+
'country': 'United States'
288+
},
289+
{
290+
'name': 'Priyanka Chopra Jonas',
291+
'follower_count': 53,
292+
'description': 'Actress and musician',
293+
'country': 'India'
294+
},
295+
{
296+
'name': '9GAG',
297+
'follower_count': 52,
298+
'description': 'Social media platform',
299+
'country': 'China'
300+
},
301+
{
302+
'name': 'Ronaldinho',
303+
'follower_count': 51,
304+
'description': 'Footballer',
305+
'country': 'Brasil'
306+
},
307+
{
308+
'name': 'Maluma',
309+
'follower_count': 50,
310+
'description': 'Musician',
311+
'country': 'Colombia'
312+
},
313+
{
314+
'name': 'Camila Cabello',
315+
'follower_count': 49,
316+
'description': 'Musician',
317+
'country': 'Cuba'
318+
},
319+
{
320+
'name': 'NBA',
321+
'follower_count': 47,
322+
'description': 'Club Basketball Competition',
323+
'country': 'United States'
324+
}
325+
]
326+
327+
def get_random_account():
328+
"""Get data from random account"""
329+
return random.choice(data)
330+
331+
def format_data(account):
332+
"""Format account into printable format: name, description and country"""
333+
name = account["name"]
334+
description = account["description"]
335+
country = account["country"]
336+
print(f'{name}: {account["follower_count"]}')
337+
return f"{name}, a {description}, from {country}"
338+
339+
def check_answer(guess, a_followers, b_followers):
340+
"""Checks followers against user's guess
341+
and returns True if they got it right.
342+
Or False if they got it wrong."""
343+
if a_followers > b_followers:
344+
return guess == "a"
345+
else:
346+
return guess == "b"
347+
348+
349+
def game():
350+
print(logo)
351+
score = 0
352+
game_should_continue = True
353+
account_a = get_random_account()
354+
account_b = get_random_account()
355+
356+
while game_should_continue:
357+
account_a = account_b
358+
account_b = get_random_account()
359+
360+
while account_a == account_b:
361+
account_b = get_random_account()
362+
363+
print(f"Compare A: {format_data(account_a)}.")
364+
print(vs)
365+
print(f"Against B: {format_data(account_b)}.")
366+
367+
guess = input("Who has more followers? Type 'A' or 'B': ").lower()
368+
a_follower_count = account_a["follower_count"]
369+
b_follower_count = account_b["follower_count"]
370+
is_correct = check_answer(guess, a_follower_count, b_follower_count)
371+
372+
print(logo)
373+
if is_correct:
374+
score += 1
375+
print(f"You're right! Current score: {score}.")
376+
else:
377+
game_should_continue = False
378+
print(f"Sorry, that's wrong. Final score: {score}")
379+
play = input("Dow want to restart? y/n: ")
380+
381+
play = input("Do you want to start? y/n: ")
382+
while play == 'y':
383+
game()
+381
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,381 @@
1+
import random
2+
3+
4+
logo = """
5+
__ ___ __
6+
/ / / (_)___ _/ /_ ___ _____
7+
/ /_/ / / __ `/ __ \/ _ \/ ___/
8+
/ __ / / /_/ / / / / __/ /
9+
/_/ ///_/\__, /_/ /_/\___/_/
10+
/ / /____/_ _____ _____
11+
/ / / __ \ | /| / / _ \/ ___/
12+
/ /___/ /_/ / |/ |/ / __/ /
13+
/_____/\____/|__/|__/\___/_/
14+
"""
15+
16+
vs = """
17+
_ __
18+
| | / /____
19+
| | / / ___/
20+
| |/ (__ )
21+
|___/____(_)
22+
"""
23+
24+
data = [
25+
{
26+
'name': 'Instagram',
27+
'follower_count': 346,
28+
'description': 'Social media platform',
29+
'country': 'United States'
30+
},
31+
{
32+
'name': 'Cristiano Ronaldo',
33+
'follower_count': 215,
34+
'description': 'Footballer',
35+
'country': 'Portugal'
36+
},
37+
{
38+
'name': 'Ariana Grande',
39+
'follower_count': 183,
40+
'description': 'Musician and actress',
41+
'country': 'United States'
42+
},
43+
{
44+
'name': 'Dwayne Johnson',
45+
'follower_count': 181,
46+
'description': 'Actor and professional wrestler',
47+
'country': 'United States'
48+
},
49+
{
50+
'name': 'Selena Gomez',
51+
'follower_count': 174,
52+
'description': 'Musician and actress',
53+
'country': 'United States'
54+
},
55+
{
56+
'name': 'Kylie Jenner',
57+
'follower_count': 172,
58+
'description': 'Reality TV personality and businesswoman and Self-Made Billionaire',
59+
'country': 'United States'
60+
},
61+
{
62+
'name': 'Kim Kardashian',
63+
'follower_count': 167,
64+
'description': 'Reality TV personality and businesswoman',
65+
'country': 'United States'
66+
},
67+
{
68+
'name': 'Lionel Messi',
69+
'follower_count': 149,
70+
'description': 'Footballer',
71+
'country': 'Argentina'
72+
},
73+
{
74+
'name': 'Beyoncé',
75+
'follower_count': 145,
76+
'description': 'Musician',
77+
'country': 'United States'
78+
},
79+
{
80+
'name': 'Neymar',
81+
'follower_count': 138,
82+
'description': 'Footballer',
83+
'country': 'Brasil'
84+
},
85+
{
86+
'name': 'National Geographic',
87+
'follower_count': 135,
88+
'description': 'Magazine',
89+
'country': 'United States'
90+
},
91+
{
92+
'name': 'Justin Bieber',
93+
'follower_count': 133,
94+
'description': 'Musician',
95+
'country': 'Canada'
96+
},
97+
{
98+
'name': 'Taylor Swift',
99+
'follower_count': 131,
100+
'description': 'Musician',
101+
'country': 'United States'
102+
},
103+
{
104+
'name': 'Kendall Jenner',
105+
'follower_count': 127,
106+
'description': 'Reality TV personality and Model',
107+
'country': 'United States'
108+
},
109+
{
110+
'name': 'Jennifer Lopez',
111+
'follower_count': 119,
112+
'description': 'Musician and actress',
113+
'country': 'United States'
114+
},
115+
{
116+
'name': 'Nicki Minaj',
117+
'follower_count': 113,
118+
'description': 'Musician',
119+
'country': 'Trinidad and Tobago'
120+
},
121+
{
122+
'name': 'Nike',
123+
'follower_count': 109,
124+
'description': 'Sportswear multinational',
125+
'country': 'United States'
126+
},
127+
{
128+
'name': 'Khloé Kardashian',
129+
'follower_count': 108,
130+
'description': 'Reality TV personality and businesswoman',
131+
'country': 'United States'
132+
},
133+
{
134+
'name': 'Miley Cyrus',
135+
'follower_count': 107,
136+
'description': 'Musician and actress',
137+
'country': 'United States'
138+
},
139+
{
140+
'name': 'Katy Perry',
141+
'follower_count': 94,
142+
'description': 'Musician',
143+
'country': 'United States'
144+
},
145+
{
146+
'name': 'Kourtney Kardashian',
147+
'follower_count': 90,
148+
'description': 'Reality TV personality',
149+
'country': 'United States'
150+
},
151+
{
152+
'name': 'Kevin Hart',
153+
'follower_count': 89,
154+
'description': 'Comedian and actor',
155+
'country': 'United States'
156+
},
157+
{
158+
'name': 'Ellen DeGeneres',
159+
'follower_count': 87,
160+
'description': 'Comedian',
161+
'country': 'United States'
162+
},
163+
{
164+
'name': 'Real Madrid CF',
165+
'follower_count': 86,
166+
'description': 'Football club',
167+
'country': 'Spain'
168+
},
169+
{
170+
'name': 'FC Barcelona',
171+
'follower_count': 85,
172+
'description': 'Football club',
173+
'country': 'Spain'
174+
},
175+
{
176+
'name': 'Rihanna',
177+
'follower_count': 81,
178+
'description': 'Musician and businesswoman',
179+
'country': 'Barbados'
180+
},
181+
{
182+
'name': 'Demi Lovato',
183+
'follower_count': 80,
184+
'description': 'Musician and actress',
185+
'country': 'United States'
186+
},
187+
{
188+
'name': "Victoria's Secret",
189+
'follower_count': 69,
190+
'description': 'Lingerie brand',
191+
'country': 'United States'
192+
},
193+
{
194+
'name': 'Zendaya',
195+
'follower_count': 68,
196+
'description': 'Actress and musician',
197+
'country': 'United States'
198+
},
199+
{
200+
'name': 'Shakira',
201+
'follower_count': 66,
202+
'description': 'Musician',
203+
'country': 'Colombia'
204+
},
205+
{
206+
'name': 'Drake',
207+
'follower_count': 65,
208+
'description': 'Musician',
209+
'country': 'Canada'
210+
},
211+
{
212+
'name': 'Chris Brown',
213+
'follower_count': 64,
214+
'description': 'Musician',
215+
'country': 'United States'
216+
},
217+
{
218+
'name': 'LeBron James',
219+
'follower_count': 63,
220+
'description': 'Basketball player',
221+
'country': 'United States'
222+
},
223+
{
224+
'name': 'Vin Diesel',
225+
'follower_count': 62,
226+
'description': 'Actor',
227+
'country': 'United States'
228+
},
229+
{
230+
'name': 'Cardi B',
231+
'follower_count': 67,
232+
'description': 'Musician',
233+
'country': 'United States'
234+
},
235+
{
236+
'name': 'David Beckham',
237+
'follower_count': 82,
238+
'description': 'Footballer',
239+
'country': 'United Kingdom'
240+
},
241+
{
242+
'name': 'Billie Eilish',
243+
'follower_count': 61,
244+
'description': 'Musician',
245+
'country': 'United States'
246+
},
247+
{
248+
'name': 'Justin Timberlake',
249+
'follower_count': 59,
250+
'description': 'Musician and actor',
251+
'country': 'United States'
252+
},
253+
{
254+
'name': 'UEFA Champions League',
255+
'follower_count': 58,
256+
'description': 'Club football competition',
257+
'country': 'Europe'
258+
},
259+
{
260+
'name': 'NASA',
261+
'follower_count': 56,
262+
'description': 'Space agency',
263+
'country': 'United States'
264+
},
265+
{
266+
'name': 'Emma Watson',
267+
'follower_count': 56,
268+
'description': 'Actress',
269+
'country': 'United Kingdom'
270+
},
271+
{
272+
'name': 'Shawn Mendes',
273+
'follower_count': 57,
274+
'description': 'Musician',
275+
'country': 'Canada'
276+
},
277+
{
278+
'name': 'Virat Kohli',
279+
'follower_count': 55,
280+
'description': 'Cricketer',
281+
'country': 'India'
282+
},
283+
{
284+
'name': 'Gigi Hadid',
285+
'follower_count': 54,
286+
'description': 'Model',
287+
'country': 'United States'
288+
},
289+
{
290+
'name': 'Priyanka Chopra Jonas',
291+
'follower_count': 53,
292+
'description': 'Actress and musician',
293+
'country': 'India'
294+
},
295+
{
296+
'name': '9GAG',
297+
'follower_count': 52,
298+
'description': 'Social media platform',
299+
'country': 'China'
300+
},
301+
{
302+
'name': 'Ronaldinho',
303+
'follower_count': 51,
304+
'description': 'Footballer',
305+
'country': 'Brasil'
306+
},
307+
{
308+
'name': 'Maluma',
309+
'follower_count': 50,
310+
'description': 'Musician',
311+
'country': 'Colombia'
312+
},
313+
{
314+
'name': 'Camila Cabello',
315+
'follower_count': 49,
316+
'description': 'Musician',
317+
'country': 'Cuba'
318+
},
319+
{
320+
'name': 'NBA',
321+
'follower_count': 47,
322+
'description': 'Club Basketball Competition',
323+
'country': 'United States'
324+
}
325+
]
326+
327+
def get_random_account():
328+
"""Get data from random account"""
329+
return random.choice(data)
330+
331+
def format_data(account):
332+
"""Format account into printable format: name, description and country"""
333+
name = account["name"]
334+
description = account["description"]
335+
country = account["country"]
336+
print(f'{name}: {account["follower_count"]}')
337+
return f"{name}, a {description}, from {country}"
338+
339+
def check_answer(guess, a_followers, b_followers):
340+
"""Checks followers against user's guess and returns True if they got it right. Or False if they got it wrong."""
341+
if a_followers > b_followers:
342+
return guess == "a"
343+
else:
344+
return guess == "b"
345+
346+
347+
def game():
348+
print(logo)
349+
score = 0
350+
game_should_continue = True
351+
account_a = get_random_account()
352+
account_b = get_random_account()
353+
354+
while game_should_continue:
355+
account_a = account_b
356+
account_b = get_random_account()
357+
358+
while account_a == account_b:
359+
account_b = get_random_account()
360+
361+
print(f"Compare A: {format_data(account_a)}.")
362+
print(vs)
363+
print(f"Against B: {format_data(account_b)}.")
364+
365+
guess = input("Who has more followers? Type 'A' or 'B': ").lower()
366+
a_follower_count = account_a["follower_count"]
367+
b_follower_count = account_b["follower_count"]
368+
is_correct = check_answer(guess, a_follower_count, b_follower_count)
369+
370+
print(logo)
371+
if is_correct:
372+
score += 1
373+
print(f"You're right! Current score: {score}.")
374+
else:
375+
game_should_continue = False
376+
print(f"Sorry, that's wrong. Final score: {score}")
377+
play = input("Dow want to restart? y/n: ")
378+
379+
play = input("Do you want to start? y/n: ")
380+
while play == 'y':
381+
game()

‎.history/Library_20220720230313.py

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
class Library:
2+
def __init__(self, listOfBooks):
3+
self.books = listOfBooks
4+
5+
def displayAvailableBooks(self):
6+
print("Books present in this library are: ")
7+
for book in self.books:
8+
print(" *" + book)
9+
10+
def borrowBook(self, bookName):
11+
if bookName in self.books:
12+
print(f"You have been issued {bookName}. Please keep it safe and return it within 30 days")
13+
self.books.remove(bookName)
14+
return True
15+
else:
16+
print("Sorry, This book is either not available or has already been issued to someone else. Please wait until the book is available")
17+
return False
18+
19+
def returnBook(self, bookName):
20+
self.books.append(bookName)
21+
print("Thanks for returning this book! Hope you enjoyed reading it. Have a great day ahead!")
22+
23+
class Student:
24+
def requestBook(self):
25+
self.book = input("Enter the name of the book you want to borrow: ")
26+
return self.book
27+
28+
def returnBook(self):
29+
self.book = input("Enter the name of the book you want to return: ")
30+
return self.book
31+
32+
33+
if __name__ == "__main__":
34+
centraLibrary = Library(["Algorithms", "Django", "Clrs", "Python Notes"])
35+
student = Student()
36+
# centraLibrary.displayAvailableBooks()
37+
while(True):
38+
welcomeMsg = '''\n ====== Welcome to Central Library ======
39+
Please choose an option:
40+
1. List all the books
41+
2. Request a book
42+
3. Add/Return a book
43+
4. Exit the Library
44+
'''
45+
print(welcomeMsg)
46+
a = int(input("Enter a choice: "))
47+
if a == 1:
48+
centraLibrary.displayAvailableBooks()
49+
elif a == 2:
50+
centraLibrary.borrowBook(student.requestBook())
51+
elif a == 3:
52+
centraLibrary.returnBook(student.returnBook())
53+
elif a == 4:
54+
print("Thanks for choosing Central Library. Have a great day ahead!")
55+
exit()
56+
else:
57+
print("Invalid Choice!")
58+
59+

‎.history/Library_20220722223232.py

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
class Library:
2+
def __init__(self, listOfBooks):
3+
self.books = listOfBooks
4+
5+
def displayAvailableBooks(self):
6+
print("Books present in this library are: ")
7+
for book in self.books:
8+
print(" *" + book)
9+
10+
def borrowBook(self, bookName):
11+
if bookName in self.books:
12+
print(f"You have been issued {bookName}. Please keep it safe and return it within 30 days")
13+
self.books.remove(bookName)
14+
return True
15+
else:
16+
print("Sorry, This book is either not available or has already been issued to someone else. Please wait until the book is available")
17+
return False
18+
19+
def returnBook(self, bookName):
20+
self.books.append(bookName)
21+
print("Thanks for returning this book! Hope you enjoyed reading it. Have a great day ahead!")
22+
23+
class Student:
24+
def requestBook(self):
25+
self.book = input("Enter the name of the book you want to borrow: ")
26+
return self.book
27+
28+
def returnBook(self):
29+
self.book = input("Enter the name of the book you want to return: ")
30+
return self.book
31+
32+
if __name__ == "__main__":
33+
centraLibrary = Library(["Algorithms", "Django", "Clrs", "Python Notes"])
34+
student = Student()
35+
# centraLibrary.displayAvailableBooks()
36+
while(True):
37+
welcomeMsg = '''\n ====== Welcome to Central Library ======
38+
Please choose an option:
39+
1. List all the books
40+
2. Request a book
41+
3. Add/Return a book
42+
4. Exit the Library
43+
'''
44+
print(welcomeMsg)
45+
a = int(input("Enter a choice: "))
46+
if a == 1:
47+
centraLibrary.displayAvailableBooks()
48+
elif a == 2:
49+
centraLibrary.borrowBook(student.requestBook())
50+
elif a == 3:
51+
centraLibrary.returnBook(student.returnBook())
52+
elif a == 4:
53+
print("Thanks for choosing Central Library. Have a great day ahead!")
54+
exit()
55+
else:
56+
print("Invalid Choice!")
57+
58+

‎CoffeeMachine.py

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
MENU = {
2+
"1": {
3+
"ingredients": {
4+
"water": 50,
5+
"coffee": 18,
6+
},
7+
"cost": 15,
8+
},
9+
"2": {
10+
"ingredients": {
11+
"water": 200,
12+
"milk": 150,
13+
"coffee": 24,
14+
},
15+
"cost": 25,
16+
},
17+
"3": {
18+
"ingredients": {
19+
"water": 250,
20+
"milk": 100,
21+
"coffee": 24,
22+
},
23+
"cost": 30,
24+
}
25+
}
26+
27+
profit = 0
28+
resources = {
29+
"water": 300,
30+
"milk": 200,
31+
"coffee": 100,
32+
}
33+
34+
35+
def is_resource_sufficient(order_ingredients):
36+
"""Returns True when order can be made, False if ingredients are insufficient."""
37+
for item in order_ingredients:
38+
if order_ingredients[item] > resources[item]:
39+
print(f"​Sorry there is not enough {item}.")
40+
return False
41+
return True
42+
43+
44+
def process_coins():
45+
"""Returns the total calculated from coins inserted."""
46+
print("Please insert coins.")
47+
coin_check = input("How you want to pay? \n1. UPI \n2. Coins\n")
48+
if coin_check == 1:
49+
print ("Transfer amount to urperfectdude@paytm ")
50+
51+
total = int(input("How many 1 Rupee Coins?: ")) * 1
52+
total += int(input("How many 2 Rupees Coins?: ")) * 2
53+
total += int(input("How many 5 Rupees Coins?: ")) * 5
54+
total += int(input("How many 10 Rupees Coins?: \n")) * 10
55+
return total
56+
57+
58+
def is_transaction_successful(money_received, drink_cost):
59+
"""Return True when the payment is accepted, or False if money is insufficient."""
60+
if money_received >= drink_cost:
61+
change = round(money_received - drink_cost, 2)
62+
print(f"Here is Rs.{change} in change.\n")
63+
global profit
64+
profit += drink_cost
65+
return True
66+
else:
67+
print("Sorry that's not enough money. Money refunded.\n")
68+
return False
69+
70+
71+
def make_coffee(drink_name, order_ingredients):
72+
"""Deduct the required ingredients from the resources."""
73+
for item in order_ingredients:
74+
resources[item] -= order_ingredients[item]
75+
print(f"Here is your {drink_name} ☕️. Enjoy!")
76+
77+
78+
is_on = True
79+
80+
while is_on:
81+
choice = input("​What would you like? \n1. Espresso \n2. Latte \n3. Cappuccino \n4. Off \n5. Report \n")
82+
if choice == "4":
83+
is_on = False
84+
elif choice == "5":
85+
print(f"Water: {resources['water']}ml")
86+
print(f"Milk: {resources['milk']}ml")
87+
print(f"Coffee: {resources['coffee']}g")
88+
print(f"Money: ${profit}")
89+
else:
90+
drink = MENU[choice]
91+
if is_resource_sufficient(drink["ingredients"]):
92+
payment = process_coins()
93+
if is_transaction_successful(payment, drink["cost"]):
94+
make_coffee(choice, drink["ingredients"])

‎High_low_Game.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@
324324
}
325325
]
326326

327-
import random
328-
329327
def get_random_account():
330328
"""Get data from random account"""
331329
return random.choice(data)
@@ -335,13 +333,11 @@ def format_data(account):
335333
name = account["name"]
336334
description = account["description"]
337335
country = account["country"]
338-
# print(f'{name}: {account["follower_count"]}')
336+
print(f'{name}: {account["follower_count"]}')
339337
return f"{name}, a {description}, from {country}"
340338

341339
def check_answer(guess, a_followers, b_followers):
342-
"""Checks followers against user's guess
343-
and returns True if they got it right.
344-
Or False if they got it wrong."""
340+
"""Checks followers against user's guess and returns True if they got it right. Or False if they got it wrong."""
345341
if a_followers > b_followers:
346342
return guess == "a"
347343
else:
@@ -378,5 +374,8 @@ def game():
378374
else:
379375
game_should_continue = False
380376
print(f"Sorry, that's wrong. Final score: {score}")
377+
play = input("Dow want to restart? y/n: ")
381378

382-
game()
379+
play = input("Do you want to start? y/n: ")
380+
while play == 'y':
381+
game()

‎Library.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def requestBook(self):
2828
def returnBook(self):
2929
self.book = input("Enter the name of the book you want to return: ")
3030
return self.book
31-
3231

3332
if __name__ == "__main__":
3433
centraLibrary = Library(["Algorithms", "Django", "Clrs", "Python Notes"])

0 commit comments

Comments
 (0)
Please sign in to comment.