Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Learning Git

Jennifer Meservey jenhmes

💭
Learning Git
View GitHub Profile
@jenhmes
jenhmes / coffeebot2.py
Created Jun 8, 2020
Coffe Bot Version 2
View coffeebot2.py
from utils import print_message, get_size, order_latte
def coffee_bot():
print('Welcome to the cafe!')
order_drink = 'y'
drinks = []
while order_drink == 'y':
size = get_size()
drink_type = get_drink_type()
temp = hot_or_iced()
@jenhmes
jenhmes / coffeebot.py
Created Jun 8, 2020
My coffee bot I created for Codecademy
View coffeebot.py
# Define your functions
def coffee_bot():
print("Welcome to the cafe!")
size=get_size()
drink_type=get_drink_type()
temp=hot_or_iced()
print("Alright, that\'s one {} {} {}!".format(temp,size,drink_type))
name=input("May I have your name please? ")
print("Thanks, {}! Your drink will be ready shortly.".format(name))