From 98741afefb105578b72b707b7b92e893b04e26ce Mon Sep 17 00:00:00 2001 From: Amber Zhen Date: Wed, 7 Mar 2018 18:06:23 -0500 Subject: [PATCH] did square & wheretoeat --- src/square.py | 2 +- src/whereToEat.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/square.py b/src/square.py index 3681a17..24e9dc3 100644 --- a/src/square.py +++ b/src/square.py @@ -1,3 +1,3 @@ # return the squared value def square(x): - pass \ No newline at end of file + return x * x \ No newline at end of file diff --git a/src/whereToEat.py b/src/whereToEat.py index 2c20a31..56c9a88 100644 --- a/src/whereToEat.py +++ b/src/whereToEat.py @@ -1,3 +1,10 @@ #given input 'north', 'west', or 'central', return 'RPCC', 'Keeton', and 'anywhere but Okenshields' respectively def where_to_eat(location): - pass + if location == "north": + return "RPCC" + elif location == "west": + return "Keeton" + elif location == "central": + return "anywhere but Okenshields" + else: + return