-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeby_1.py
More file actions
63 lines (60 loc) · 1.56 KB
/
codeby_1.py
File metadata and controls
63 lines (60 loc) · 1.56 KB
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
january = 'январь'
february = 'февраль'
march = 'март'
april = 'апрель'
may = 'май'
june = 'июнь'
jule = 'июль'
awguste = 'август'
september = 'сентябрь'
october = 'октябрь'
november = 'ноябрь'
december = 'декабрь'
message1 = input("Введите месяц от 1 до 12 или введите (exit)")
if message1 == '1':
print(january)
if message1 == '2':
print(february)
if message1 == '3':
print(march)
if message1 == '4':
print(april)
if message1 == '5':
print(may)
if message1 == '6':
print(june)
if message1 == '7':
print(jule)
if message1 == '8':
print(awguste)
if message1 == '9':
print(september)
if message1 == '10':
print(october)
if message1 == '11':
print(november)
if message1 == '12':
print(december)
elif message1 == "exit":
exit("buy")
password = 12345
message3 = input("Введите пароль --> ")
if message3 == '12345':
print("Password is correct! ")
else:
print("Пароль введен не верно! \n Экстренный выход!")
age = 18
older = 55
question = input("введите свой возраст: ")
if int(question) <= 18:
answer = "younger "
if int(question) <= 55:
question = "normal! "
else:
question = "older man! "
print("You age is: + " + question + ".")
a = input("Угадай число: ")
if int(a)%3 == 0:
print("Поздравляю ваше число кратно трем, вы заработали миллиард! ")
else:
print("Game over, повезет в любви!")