This repository was archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMegaCinema.py
57 lines (51 loc) · 1.5 KB
/
MegaCinema.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
"""
Mega Cinema
"""
import time
import sys
from pprint import pprint
cuser = "admin"
cpassw = "pass"
x = 0
movies = {
"it":{
"kirkstall": {"8:00","10:00","12:00","16:00","18:00","20:00"},
"headingley": {"8:00","10:00","12:00","16:00","18:00","20:00"},
"leedscentre": {"8:00","10:00","12:00","16:00","18:00","20:00"}
},
"dunkirk": {
"kirkstall": {"8:00","10:00","12:00","16:00","18:00","20:00"},
"headingley": {"8:00","10:00","12:00","16:00","18:00","20:00"},
"leedscentre": {"8:00","10:00","12:00","16:00","18:00","20:00"}
}
}
while x < 4:
user = input("Username: ")
passw = input("Password: ")
if user == cuser:
if passw == cpassw:
print("\n")
time.sleep(0.5)
print("Loading.\n")
time.sleep(0.5)
print ("Loading..\n")
time.sleep(0.5)
print ("Loading...\n")
time.sleep(0.5)
print ("---------- LOGIN SUCCESSFUL ----------\n\n\n\n")
x = 4
elif x == 3:
sys.exit()
else:
print ("INVALID")
x = x + 1
time.sleep(1)
print (" Welcome to...\n")
print (" ~~~~~THE MEGA CINEMA MOVIE DATABASE~~~~~\n\n\n\n")
films = input("Please enter the name of a movie: ")
films = films.lower()
if films in movies:
print ("\n")
print ("Venues Times")
pprint(movies.get(films))
cinema = input("Please enter a cinema: ")