-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
31 lines (28 loc) · 927 Bytes
/
main.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
from interactive import Interactive
from input import File
if __name__ == "__main__":
print("1.interactive for manual input. 2.file input for giving input in a file")
interaction = input("write interactive or file to choose from them :")
print()
manual = Interactive()
auto = File()
if interaction == "interactive":
cnt = 0
while cnt < 2:
if cnt == 0:
manual.Create_Parking()
cnt += 1
else:
manual.Activities()
cnt += 1
elif interaction == "file":
print("file E:\AttainU\PL\python-project-nihar-mohanty-au16")
file_address = input("file location please :")
f = open(file_address, "r")
cnt = 0
for row in f:
if cnt == 0:
auto.Create_Parking(row)
cnt += 1
else:
auto.Activities(row)