-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
107 lines (55 loc) · 2 KB
/
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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# imports
from modules import *
print("DIET PLANNER V2 -- command line version")
print("Welcome to DIET planner, to start agree the following terms and conditions: ")
while True:
# terms and conditions
print("TERMS AND CONDITION:- ")
print(" * diet planner is not responsible for your death * ")
print(" * diet planner is not responsible for your health * ")
print(" * you should not listen to diet planner * ")
agree = str(input("do you agree to the following(Y/N): "))
atc = False
if agree in ("Y","y"):
atc = True
print("success !")
print(" ")
break
elif agree in("N","n"):
atc = False
print("<--! you must accept the terms and conditions to continur with the program !--> ")
else:
print("<--! please provide a vaild input !--> ")
# Registration / Login
if atc == True:
while True:
checkr = False
checkl = False
print("LOGIN AND REGISTRATION:- ")
print("To proceed you must have an account and if you dont you can create one here:- ")
lt = str(input("if need an account type R or if you have an account type L(R/L): "))
print(" ")
if lt in ("r","R"):
print("REGISTRATION:- ")
k = registration()
if k == True:
checkr = True
break
elif lt in ("l","L"):
print("LOGIN:- ")
k = login()
if k == True:
checkl = True
break
if checkr == True:
print("<--! Welcome to Diet Planner !--> ")
break
elif checkl == True:
print("<--! Welcome back to Diet Planner !--> ")
break
else:
continue
# main hub area
if atc == True and (checkl or checkr) == True:
print("WElCOME TO THE MAIN HUB, you'll be provided a series of options to choose from")
hub()