Ken Schaefer
12 months ago
4 changed files with 97 additions and 0 deletions
@ -0,0 +1,27 @@
|
||||
print("The Love Calculator") |
||||
name1 = input() |
||||
name2 = input() |
||||
|
||||
combined_names = name1 + name2 |
||||
|
||||
lower_names = combined_names.lower() |
||||
t = lower_names.count("t") |
||||
r = lower_names.count("r") |
||||
u = lower_names.count("u") |
||||
e = lower_names.count("e") |
||||
first_digit = t + r + u + e |
||||
|
||||
l = lower_names.count("l") |
||||
o = lower_names.count("o") |
||||
v = lower_names.count("v") |
||||
e = lower_names.count("e") |
||||
second_digit = l + o + v + e |
||||
|
||||
score = (first_digit * 10) + second_digit |
||||
|
||||
if (score < 10) or (score > 90): |
||||
print(f"Your score is {score}, you go together like coke and mentos") |
||||
elif (score >= 40) and (score <= 50): |
||||
print(f"Your score is {score}, you are alright together") |
||||
else: |
||||
print(f"You score is {score}") |
@ -0,0 +1,28 @@
|
||||
print("Thank you for choosing Python Pizza") |
||||
|
||||
# Small $15 |
||||
# Medium $20 |
||||
# Large $25 |
||||
size = input() |
||||
# Small +$2 |
||||
# Medium or Large +$3 |
||||
add_pepperoni = input() |
||||
# Any size +$1 |
||||
extra_cheese = input() |
||||
|
||||
price = 0 |
||||
if size == "S": |
||||
price += 15 |
||||
if add_pepperoni == "Y": |
||||
price += 2 |
||||
elif size == "M": |
||||
price += 20 |
||||
if add_pepperoni == "Y": |
||||
price += 3 |
||||
else: |
||||
price += 25 |
||||
|
||||
if extra_cheese == "Y": |
||||
price += 1 |
||||
|
||||
print(f"Your final bill is: {price}") |
@ -0,0 +1,42 @@
|
||||
print(''' |
||||
******************************************************************************* |
||||
| | | | |
||||
_________|________________.=""_;=.______________|_____________________|_______ |
||||
| | ,-"_,="" `"=.| | |
||||
|___________________|__"=._o`"-._ `"=.______________|___________________ |
||||
| `"=._o`"=._ _`"=._ | |
||||
_________|_____________________:=._o "=._."_.-="'"=.__________________|_______ |
||||
| | __.--" , ; `"=._o." ,-"""-._ ". | |
||||
|___________________|_._" ,. .` ` `` , `"-._"-._ ". '__|___________________ |
||||
| |o`"=._` , "` `; .". , "-._"-._; ; | |
||||
_________|___________| ;`-.o`"=._; ." ` '`."\` . "-._ /_______________|_______ |
||||
| | |o; `"-.o`"=._`` '` " ,__.--o; | |
||||
|___________________|_| ; (#) `-.o `"=.`_.--"_o.-; ;___|___________________ |
||||
____/______/______/___|o;._ " `".o|o_.--" ;o;____/______/______/____ |
||||
/______/______/______/_"=._o--._ ; | ; ; ;/______/______/______/_ |
||||
____/______/______/______/__"=._o--._ ;o|o; _._;o;____/______/______/____ |
||||
/______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_ |
||||
____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____ |
||||
/______/______/______/______/______/______/______/______/______/______/[TomekK] |
||||
******************************************************************************* |
||||
''') |
||||
print("Welcome to Treasure Island") |
||||
print("Your mission is to find the treasure.") |
||||
|
||||
action = input("You stand in a clearing. There are paths that lead to the LEFT and to the RIGHT. Which way do you go? [Left, Right]") |
||||
if(action.lower == "right"): |
||||
print("You have fallen into a hole. Game Over.") |
||||
else: |
||||
action = input("There is a small pond. You can SWIM across or you can WAIT. [Swim, Wait]") |
||||
if(action.lower == "swim"): |
||||
print("You are attacked by rabid trout. Game Over.") |
||||
else: |
||||
input("Three doors appear on the shore of the pond. One is RED another BLUE and the last is YELLOW. What do you do? [Red, Blue, Yellow, Wait]") |
||||
if(action.lower == "red"): |
||||
print("You are burned by fire. Game Over.") |
||||
elif(action.lower == "blue"): |
||||
print("You are eaten by beasts. Game over") |
||||
elif(action.lower == "yellow"): |
||||
print("You found the treasure. You win") |
||||
else: |
||||
print("You die of boredom. Game Over.") |
Loading…
Reference in new issue