-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautocite.py
34 lines (31 loc) · 880 Bytes
/
autocite.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from tools import *
import mla
while True:
#mode selection
mode = inp('''Welcome to AutoCite!
What are you citing today?
1 - Journal Article
2 - News Article
3 - Print Book
4 - eBook
5 - Book Chapter
6 - Web Page
7 - Exit''', True)
#actually go to the section of the code
if mode == '1' or mode == "journal article":
mla.journal()
elif mode == '2' or mode == "news article":
mla.news()
elif mode == '3' or mode == "print book":
mla.printBook()
elif mode == '4' or mode == "ebook":
mla.eBook()
elif mode == '5' or mode == "book chapter":
mla.chapter()
elif mode == '6' or mode == "web page":
mla.web()
elif mode == '7' or mode == "exit":
break
#ask user to retry if they accidentally hit the wrong key
else:
print ("Please choose a mode")