-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpara-vc.py
116 lines (102 loc) · 2.79 KB
/
para-vc.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
108
109
110
111
112
113
114
115
116
# não veja o código, apenas execute :)
# apenas,
# execute.
#
#
#
#
#
#
# ,-,
# /.(
# \ {
# `-`
#
#
#
# apenas relaxe...
# . * . . .
# . _ . . . .
# . . _ / | . . * _ . .
# | \_| | | | __
# _ | | _ | |/ |
# | \ | ____ | | / | \
# | | \ +/_\/_\+ | | / | \
# _/____\--...\___ \_||_/ ___...|__\-..|____\____/__
# . . |_|__|_| . .
# . . . _/ /__\ \_ . .
# . . . . .
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
from time import sleep
while True:
description = input("você poderia descrever como você se sente em uma palavra?\nex: triste, feliz, cansado.\n- ")
list_of_words = description.split()
feelings_list = []
encouragement_list = []
counter = 0
for each_word in list_of_words:
if each_word == "triste":
feelings_list.append("triste")
encouragement_list.append("que amanhã será um dia melhor.")
counter += 1
if each_word == "feliz":
feelings_list.append("feliz")
encouragement_list.append("de continuar sorrindo.")
counter += 1
if each_word == "cansado":
feelings_list.append("cansado")
encouragement_list.append("você é mais forte do que pensa.")
counter += 1
if counter == 0:
output = "eu não entendi, pode usar uma palavra diferente?"
elif counter == 1:
output = "parece que você está se sentindo bastante " + \
feelings_list[0] + ". no entanto, lembre-se " + \
encouragement_list[0] + " espero que você se sinta melhor :)"
else:
feelings = ""
for i in range(len(feelings_list)-1):
feelings += feelings_list[i] + ", "
feelings += "e " + feelings_list[-1]
encouragement = ""
for j in range(len(encouragement_list)-1):
encouragement += encouragement_list[i] + ", "
encouragement += "e " + encouragement_list[-1]
output = "parece que você está se sentindo bastante " + feelings + \
". por favor, lembre-se sempre " + encouragement + " espero que você se sinta melhor :)"
print()
print()
print()
sleep(3)
print("hmmmm")
sleep(1)
print("...")
sleep(1.5)
print("você se sente " + feelings_list[0] + "?")
sleep(2)
print(output)
sleep(10)
print()
print()
print()