/
master.py
78 lines (71 loc) · 3.78 KB
/
master.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import hello
import number_game
import farts
def master():
print("""
#####################################################################
### Master.py ###
#####################################################################
# #
# Hello, and welcome to the Master.py! #
# #
# With this simple file you will be able to navigate to any of the #
# other Python projects. #
# #
# Simply type in the name of the project you would like to visit #
# and press Enter. #
# #
#####################################################################
# #
# Select from the following files: #
# - hello.py #
# - number_game.py #
# - farts.py #
# - list.py #
# #
#####################################################################
""")
selection = input("Enter the name of a Python script you'd like to run: ")
if selection == "hello.py":
print("""
#####################################################################
### hello.py ###
#####################################################################
# #
# hello.py is loading ... #
# #
#####################################################################
""")
hello.hello_world()
elif selection == "number_game.py":
print("""
#####################################################################
### number_game.py ###
#####################################################################
# #
# number_game.py is loading ... #
# #
#####################################################################
""")
number_game.game()
elif selection == "farts.py":
print("""
#####################################################################
### farts.py ###
#####################################################################
# #
# farts.py is loading ... #
# #
#####################################################################
""")
print("farts.py")
else:
print("ERROR! Cannot find: ", selection)
selection = None
master()
#For some reason, when I call the scrip to launch initially, it breaks everything.
#More investigation is required.
#master()
#isStart = input("Type start to begin: ")
#if isStart.lower() == "start":
#start()