-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
47 lines (32 loc) · 824 Bytes
/
Copy pathmain.py
File metadata and controls
47 lines (32 loc) · 824 Bytes
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
#this is a NoteBook
from USERS import actions
print("""
Welcome to NoteBook!
|--------------------------|
| What do you wanna do? |
| |
| 1.Log in |
| 2.Sign in |
|--------------------------|
""")
wi = 0
try:
welcome_input = int(input("Write your answer here: "))
wi = welcome_input
except:
print("\nWrite one number in range '1 - 2'\n")
while True:
try:
welcome_input = int(input("Write your answer here: "))
if welcome_input == 1 or welcome_input == 2:
wi = welcome_input
break
else:
print("")
except:
print("")
do_it = actions.actions()
if wi == 1:
do_it.log_in()
elif welcome_input == 2:
do_it.sign_in()