1
+ import random
2
+ house = {
3
+ 'frontend' : 0 ,
4
+ 'backend' : 0 ,
5
+ 'mobile' : 0 ,
6
+ 'data' :0
7
+ }
8
+
9
+ name = input ('Enter your name ' )
10
+
11
+ print ("1 - WHat's your favourite framework ?" )
12
+ print (" a React" )
13
+ print (" b Node.js" )
14
+ print (" c Flutter" )
15
+ print (" d Keras" )
16
+ choice = input ("> " )
17
+ choice = choice .lower ()
18
+
19
+ match choice :
20
+ case 'a' : house ['frontend' ] += 1
21
+ case 'b' : house ['backend' ] += 1
22
+ case 'c' : house ['mobile' ] += 1
23
+ case 'd' : house ['data' ] += 1
24
+ case _: print ("Incorrect option " )
25
+
26
+ print ("2 - which language do you prefer?" )
27
+ print (" a Python" )
28
+ print (" b HTML/CSS" )
29
+ print (" c Java" )
30
+ print (" d Kotlin" )
31
+ choice = input ("> " )
32
+ choice = choice .lower ()
33
+ match choice :
34
+ case 'a' : house ['data' ] += 1
35
+ case 'b' : house ['frontend' ] += 1
36
+ case 'c' : house ['backend' ] += 1
37
+ case 'd' : house ['mobile' ] += 1
38
+ case _: print ("Incorrect option " )
39
+
40
+ print ("3 - Which activity do you prefer" )
41
+ print (" a Build UI interfaces" )
42
+ print (" b Develop APIs" )
43
+ print (" c Apps for mobile" )
44
+ print (" d Analyse data from a source" )
45
+ choice = input ("> " )
46
+ choice = choice .lower ()
47
+ match choice :
48
+ case 'a' : house ['frontend' ] += 1
49
+ case 'b' : house ['backend' ] += 1
50
+ case 'c' : house ['mobile' ] += 1
51
+ case 'd' : house ['data' ] += 1
52
+ case _: print ("Incorrect option " )
53
+
54
+ print ("4 - Where do you want to view your apps" )
55
+ print (" a Browser" )
56
+ print (" b SAAS" )
57
+ print (" c App store/Play store" )
58
+ print (" d Other" )
59
+ choice = input ("> " )
60
+ choice = choice .lower ()
61
+ match choice :
62
+ case 'a' : house ['frontend' ] += 1
63
+ case 'b' : house ['backend' ] += 1
64
+ case 'c' : house ['mobile' ] += 1
65
+ case 'd' : house ['data' ] += 1
66
+ case _: print ("Incorrect option " )
67
+
68
+ print ("5 - What is more valuable for you?" )
69
+ print (" a Create a nice UI" )
70
+ print (" b Analyse data and create reports" )
71
+ print (" c Use your app everywhere with your phone" )
72
+ print (" d Create a solution for a problem" )
73
+ choice = input ("> " )
74
+ choice = choice .lower ()
75
+ match choice :
76
+ case 'a' : house ['frontend' ] += 1
77
+ case 'b' : house ['data' ] += 1
78
+ case 'c' : house ['mobile' ] += 1
79
+ case 'd' : house ['backend' ] += 1
80
+ case _: print ("Incorrect option " )
81
+
82
+
83
+ print ("6 - Which tool do you prefer to learn?" )
84
+ print (" a Android studio" )
85
+ print (" b Figma" )
86
+ print (" c Power BI" )
87
+ print (" d Mongo DB" )
88
+ choice = input ("> " )
89
+ choice = choice .lower ()
90
+ match choice :
91
+ case 'a' : house ['mobile' ] += 1
92
+ case 'b' : house ['frontend' ] += 1
93
+ case 'c' : house ['data' ] += 1
94
+ case 'd' : house ['backend' ] += 1
95
+ case _: print ("Incorrect option " )
96
+
97
+ print ("7 - if you need to optimze something what do you prefer?" )
98
+ print (" a Optimize database access" )
99
+ print (" b Optimize response time" )
100
+ print (" c Optimize UI" )
101
+ print (" d Other" )
102
+ choice = input ("> " )
103
+ choice = choice .lower ()
104
+ match choice :
105
+ case 'a' : house ['backend' ] += 1
106
+ case 'b' : house ['mobile' ] += 1
107
+ case 'c' : house ['frontend' ] += 1
108
+ case 'd' : house ['data' ] += 1
109
+ case _: print ("Incorrect option " )
110
+
111
+ print ("8 - Do you know any of the following technologies?" )
112
+ print (" a Docker" )
113
+ print (" b Vue" )
114
+ print (" c Swift" )
115
+ print (" d Bigquery" )
116
+ choice = input ("> " )
117
+ choice = choice .lower ()
118
+ match choice :
119
+ case 'a' : house ['backend' ] += 1
120
+ case 'b' : house ['frontend' ] += 1
121
+ case 'c' : house ['mobile' ] += 1
122
+ case 'd' : house ['data' ] += 1
123
+ case _: print ("Incorrect option " )
124
+
125
+ print ("9 - How do you see your carreer in 5 years?" )
126
+ print (" a UI Master" )
127
+ print (" b Backend master" )
128
+ print (" c Mobile master" )
129
+ print (" d Data master" )
130
+ choice = input ("> " )
131
+ choice = choice .lower ()
132
+ match choice :
133
+ case 'a' : house ['frontend' ] += 1
134
+ case 'b' : house ['backend' ] += 1
135
+ case 'c' : house ['mobile' ] += 1
136
+ case 'd' : house ['data' ] += 1
137
+ case _: print ("Incorrect option " )
138
+
139
+ bigger = 0
140
+ houses_selected = []
141
+ print (house )
142
+ for element in house :
143
+ if house [element ]> bigger :
144
+ bigger = house [element ]
145
+ houses_selected = []
146
+ houses_selected .append (element )
147
+ elif house [element ] == bigger :
148
+ houses_selected .append (element )
149
+
150
+ print (f'Name { name } house: { random .choices (houses_selected )} ' )
0 commit comments