arohi-k commited on
Commit
a99258b
·
verified ·
1 Parent(s): f753875

updated personality

Browse files
Files changed (1) hide show
  1. app.py +25 -4
app.py CHANGED
@@ -5,11 +5,11 @@ def match_europe(scores):
5
  a = scores.count("A")
6
  b = scores.count("B")
7
  c = scores.count("C")
8
- if a >= 3:
9
  return "Rome"
10
- elif b >=3:
11
  return "Paris"
12
- elif c >= 3:
13
  return "London"
14
  else:
15
  if a > b and a > c:
@@ -20,7 +20,28 @@ def match_europe(scores):
20
  return "London"
21
  else:
22
  return "Rome"
23
- return "Hello " + name + "!!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
 
26
 
 
5
  a = scores.count("A")
6
  b = scores.count("B")
7
  c = scores.count("C")
8
+ if a >= 5:
9
  return "Rome"
10
+ elif b >=5:
11
  return "Paris"
12
+ elif c >= 5:
13
  return "London"
14
  else:
15
  if a > b and a > c:
 
20
  return "London"
21
  else:
22
  return "Rome"
23
+ questions_europe[
24
+ ("1. What kind of weather do you prefer?", [
25
+ ("A", "Warm and sunny"),
26
+ ("B", "Mild and a bit cloudy"),
27
+ ("C", "Cool with a chance of rain")
28
+ ]),
29
+ ("2. How do you feel about crowds?", [
30
+ ("A", "I don't mind them."),
31
+ ("B", "I don't really like them."),
32
+ ("C", "Understanding the world deeply and expressing myself.")
33
+ ]),
34
+ ("3. When you face a challenge, how do you respond?", [
35
+ ("A", "I dive in with passion and take bold action."),
36
+ ("B", "I think carefully and stay calm before acting."),
37
+ ("C", "I hesitate, but eventually do what feels right.")
38
+ ]),
39
+ ("4. How do you handle romantic relationships?", [
40
+ ("A", "I fall deeply and idealize the other person."),
41
+ ("B", "I enjoy it but I try to keep things realistic."),
42
+ ("C", "I’m not always sure what I want — it’s confusing.")
43
+ ])
44
+ ]
45
 
46
 
47