-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathintro.py
56 lines (41 loc) · 1.65 KB
/
intro.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
import sys
from datetime import datetime
from os import remove
print("\t\t\t\t\t\tWelcome to Mukenya car app!🚦")
print("\t\tChoose your choice: ")
print(f"1. Vehicle entry\n"
f"2. Close program\n")
selection = int(input("Hi, kindly enter your choice: "))
if selection == 1:
carName = input("Your car name: ")
carModel = input("Car model: ")
carPlate = input("Car number plate: ")
today = datetime.today()
print(f"{carName},{carModel},{carPlate} has Entered {today}")
parkIt1 = ['🫣','🫣','🫣','🫣','🫣']
parkIt2 = ['🫣','🫣','🫣','🫣','🫣']
parkIt3 = ['🫣','🫣','🫣','🫣','🫣']
parkIt4 = ['🫣','🫣','🫣','🫣','🫣']
parkIt5 = ['🫣','🫣','🫣','🫣','🫣']
zote = [parkIt1,parkIt2,parkIt3,parkIt4,parkIt5]
print(f"{parkIt1}\n{parkIt2}\n{parkIt3}\n{parkIt4}\n{parkIt5}")
car = input("Park your vehicle🅿️(2 digits to rep the row and column): \n")
row = int(car[0])
col = int(car[1])
select_row = zote[row-1]
select_row[col-1] = '🚘'
print("Car parked successfully!!!!✅✅✅✅\n")
print(f"Want to see where you have parked?⁉️ \n"
f"1. Yes✔️\n"
f"2. No❌")
parked = int(input("Choice?: "))
if parked == 1:
print(f"{parkIt1}\n{parkIt2}\n{parkIt3}\n{parkIt4}\n{parkIt5}")
print("🤝🤝🤝🤝🤝🤝🤝")
print("Screenshot to validate the date you have given us for reference\n Thank you.")
else:
sys.exit()
else:
print("Shutting down the program...Bye!")
sys.exit()
#print has end and sep keywords