Skip to content

Commit

Permalink
update get-quote.py
Browse files Browse the repository at this point in the history
  • Loading branch information
K-281 committed Jul 6, 2022
1 parent 3ebb3de commit b7239a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions get-quote.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import random
import sys
# from colorama import init, Fore, Back, Style


def primary():
Expand All @@ -15,11 +14,11 @@ def secondary():
f = open("quotes.txt", encoding="utf8")
quotes = f.readlines()
f.close()
quote = input("Enter a quote to add it or press 'e' to exit or 'r' to get a random quote: ")
quote = input("Enter a quote to add it or press 'e' to exit or 'r' 'enter' to get a random quote: ")
if quote == "e":
print("Goodbye!")
sys.exit()
elif quote == "r":
elif quote == "r" or quote == "":
quote = random.choice(quotes)
print(f'{quote}')
else:
Expand Down

0 comments on commit b7239a7

Please sign in to comment.