From 075c3aa044ce047718fd6d3b00960e5b4d64ab4c Mon Sep 17 00:00:00 2001 From: Bastian Date: Thu, 16 Jan 2020 11:13:01 +0100 Subject: [PATCH] Add assigments folder --- Assigments.md => assignments/Assigments.md | 0 icecream.py | 14 -------------- 2 files changed, 14 deletions(-) rename Assigments.md => assignments/Assigments.md (100%) delete mode 100644 icecream.py diff --git a/Assigments.md b/assignments/Assigments.md similarity index 100% rename from Assigments.md rename to assignments/Assigments.md diff --git a/icecream.py b/icecream.py deleted file mode 100644 index f1f4ccb..0000000 --- a/icecream.py +++ /dev/null @@ -1,14 +0,0 @@ -def ask_yes_no(prompt): - while True: - answer = input(prompt + ' (y or n) ') - if answer == 'y' or answer == 'Y': - return True # returning ends the function - if answer == 'n' or answer == 'N': - return False - print("Answer 'y' or 'n'.") - -if ask_yes_no("Do you like ice cream?"): - print("You like ice cream!") -else: - print("You don't like ice cream.") -