-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnokia_phone3310.py
539 lines (464 loc) · 15.2 KB
/
nokia_phone3310.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
def nokia_phone():
menu = (input("""
NOKIA PHONE MAIN MANU
1-> Phone book
2-> Messages
3-> Chat
4-> Call Register
5-> Tones
6-> Settings
7-> Call Divert
8-> Games
9-> Calculator
10-> Reminders
11-> Clock
12-> Profiles
13-> SIM services
select options 1 to 10 access phone menu: """))
match menu:
case '1':
print(phone_book())
case '2':
print(message())
case '3':
print(chart())
case '4':
print(call_register())
case '5':
print(tone())
case '6':
print(setting())
case '7':
print(cal_divert())
case '8':
print(Games())
case '9':
print(calculator())
case '10':
print(reminder())
case '11':
print(clock())
case '12':
print(profiles())
case '13':
print(Sim_services())
case _:
print(main_menu())
def phone_book():
phone_book_menu = (input("""
Phone Book:
1-> Search
2-> Service Nos.
3-> Add name
4-> Erase
5-> Edit
6-> Assign tone
7-> Send b'card
8-> Option
9-> Speed dials
10-> Voice tags
select option 1 to 10 to access features """))
match phone_book_menu:
case '1':
print(' Search Activated'), print(main_menu())
case '2':
print(" Service Nos Activate"), print(main_menu())
case '3':
print(" Add name Activated"), print(main_menu())
case '4':
print(" Erase Activated "), print(main_menu())
case '5':
print(" Edit Activated "), print(main_menu())
case '6':
print(" Assign tone Activated "), print(main_menu())
case '7':
print(" end b'card is Activated "), print(main_menu())
case '9':
print(" Speed dail activated "), print(main_menu())
case '10':
print("voice tag activated"), print(main_menu())
case '8':
print(options())
def options():
option_menu = (input("""
Option Activated
1-> Type of view
2-> Memory Status
Select Option """))
match option_menu:
case '1':
print("Type of view Activated"), print(main_menu())
case '2':
print("Memory Status Activated"), print(main_menu())
case _:
print(options())
def main_menu():
going_back = (input(" press 1 to go back to main menu: "))
if going_back == '1': print(nokia_phone())
else: print("wrong input entered",main_menu())
def message():
message_menu = (input("""
Message
1-> Write messages
2-> Inbox
3-> Outbox
4-> Picture messages
5-> Templates
6-> Smileys
7-> Message settings
8-> info service
9-> Voice mailbox number
10. Service command editor
Select option: """))
match message_menu:
case '1':
print("Write message..."), print(main_menu())
case '2':
print(" welcome to inbox "), print(main_menu())
case '3':
print("Outbox Activated "), print(main_menu())
case '4':
print("picture message activated."), print(main_menu())
case '5':
print("Templates mode is active "), print(main_menu())
case '6':
print("smileys activated "), print(main_menu())
case '8':
print("info Service Activated "), print(main_menu())
case '9':
print("Voice mailbox number Activated"), print(main_menu())
case '10':
print("Service command editor Activated "), print(main_menu())
case '7':
print(message_setting())
def message_setting():
message_setting_menu = (input("""
Message setting
1-> Set
2-> Common
select option: """))
match message_setting_menu:
case '1':
print(set())
case '2':
print(common())
case _:
print("Wrong input, try again "), print(main_menu())
def set():
set_menu = (input("""
Set1
1-> Message Centre number
2-> Message sent as
3-> Message validity
select option: """))
match set_menu:
case '1':
print("Message Centre number"), print(main_menu())
case '2':
print("Message sent as ..."), print(main_menu())
case '3':
print("Message validity.."), print(main_menu())
case _:
print(" wrong entry try agan"), print(main_menu())
def common():
common_menu = (input("""
Common
1-> Delivery report
2-> Reply via same centre
3-> Character Support
select Option: """))
match common_menu:
case '1':
print(" Delivery report..Activated"), print(main_menu())
case '2':
print(" Reply via same centre..Activated"), print(main_menu())
case '3':
print(" Character Support.. Activated"), print(main_menu())
case _:
print(main_menu())
def chart():
print("chart"), print(main_menu())
def call_register():
chart_menu = input("""
Call register
1-> Missed calls
2-> Received Calls
3-> Dialled numbers
4-> Erase recent call lists
5-> Show call duration
6-> Show call cost
7-> Call cost settings
8-> prepaid credit
select options: """)
match chart_menu:
case '1':
print(" Missed calls"), print(main_menu())
case '2':
print(" Received calls"), print(main_menu())
case '3':
print(" Dialled numbers"), print(main_menu())
case '4':
print("Erase recent call list"), print(main_menu())
case '5':
print(show_call_duration())
case '6':
print(show_call_cost())
case '7':
print(call_cost_setting())
case '8':
print(" prepaid credit"), print(main_menu())
case _:
print(print(main_menu()))
def call_cost_setting():
call_cost_setting_menu = input("""
Call cost Settings
1->call cost limit
2-> Show costs in
select option: """)
match call_cost_setting_menu:
case '1':
print(" calls cost limit"), print(main_menu())
case '2':
print(" show costs in "), print(main_menu())
case _:
print(main_menu())
def show_call_duration():
show_call_duration_menu = input("""
Show call duration
1-> last call duration
2-> All call's duration
3-> Received call's duration
4-> Dialled calls duration
5-> Clear timers
select options: """)
match show_call_duration_menu:
case '1':
print(" last call duration"), print(main_menu())
case '2':
print(" All call's duration "), print(main_menu())
case '3':
print(" Received call's duration"), print(main_menu())
case '4':
print(" Dialled calls duration"), print(main_menu())
case '5':
print("Clear timers"), print(main_menu())
case _:
print(main_menu())
def show_call_cost():
show_call_cost_menu = input("""
Show call cost
1-> Last call cost
2-> All call's cost
3-> Clear counters
select option: """)
match show_call_cost_menu:
case '1':
print(" Last calls cost"), print(main_menu())
case '2':
print(" All call's cost"), print(main_menu())
case '3':
print(" Clear counters"), print(main_menu())
case _:
print(main_menu())
def tone():
tone_menu = input("""
Tones
1->Ringing tone
2->Ringing Volume
3-> Incoming call alert
4-> Composer
5-> Message alert tone
6-> Keypad tones
7-> Warning and game tones
8-> Vibrating alert
9-> Screen saver
select options: """)
match tone_menu:
case '1':
print(" Ringing tone"), print(main_menu())
case '2':
print(" Ringing Volume"), print(main_menu())
case '3':
print("Incoming call alert"), print(main_menu())
case '4':
print(" composer "), print(main_menu())
case '5':
print("Message Message alert tone"), print(main_menu())
case '6':
print("Keypad tones"), print(main_menu())
case '7':
print(" Warning and game tones"), print(main_menu())
case '8':
print("Vibrating alert"), print(main_menu())
case '9':
print("Screen saver"), print(main_menu())
case _:
print(main_menu())
def setting():
setting_menu = input("""
Setting
1-> Call setting
2-> Phone setting
3-> security setting
4-> Restore factory settings
select option: """)
match setting_menu:
case '1':
print(call_setting())
case '2':
print(phone_setting())
case '3':
print(setting())
case '4':
print("Restore factory setting"), print(main_menu())
def call_setting():
call_setting_menu = input("""
Call setting
1-> Automatic redial
2-> Speed dialling
3-> Call waiting options
4-> Own number sending
5-> Phone line in use
6-> Automatic answer
select option: """)
match call_setting_menu:
case 1:
print(" Automatic redial"), print(main_menu())
case 2:
print(" speed dialling"), print(main_menu())
case 3:
print(" Call waiting option"), print(main_menu())
case 4:
print("Own number sending"), print(main_menu())
case 5:
print("Phone line in use"), print(main_menu())
case 6:
print("Automatic answer"), print(main_menu())
case _:
print(main_menu())
def phone_setting():
phone_setting_menu = input("""
Phone Setting:
1-> Language
2-> Cell info display
3-> Welcome note
4-> Network selection
5-> Lights
6-> Confirm SIM service action
select Option: """)
match phone_setting_menu:
case '1':
print("language Active"), print(main_menu())
case '2':
print("cell info display"), print(main_menu())
case '3':
print("welcome"), print(main_menu())
case '4':
print("Network selection"), print(main_menu())
case '5':
print("Welcome to Lights"), print(main_menu())
case '6':
print("Confirm SIM service action"), print(main_menu())
case _:
print(main_menu())
def security_setting():
security_setting_menu = input("""
Security setting:
1-> PIN code request
2-> Call barring service
3-> Fixed dialling
4-> Closed user group
5-> Phone Security
6-> Change access codes
select option: """)
match security_setting_menu:
case '1':
print(" PIN code request Active"), print(main_menu())
case '2':
print("Call barring service"), print(main_menu())
case '3':
print("Fixed dialling active"), print(main_menu())
case '4':
print("Closed user group"), print(main_menu())
case '5':
print("Phone security"), print(main_menu())
case '6':
print("Change access code"), print(main_menu())
case _:
print(main_menu())
def cal_divert():
print("call divert activated"), print(main_menu())
def Games():
print("enjoy wonderful games next time we come your way"), print(main_menu())
def addition():
number1 = int(input("Enter first Number: "))
number2 = int(input("Enter second Number: "))
add = (number1 + number2)
print(f'The result is = {add}')
def subtraction():
number1 = int(input("Enter first Number: "))
number2 = int(input("Enter second Number: "))
answer = number1 - number2
print(f'The result is = {answer}')
def multiplication():
number1 = int(input("Enter first Number: "))
number2 = int(input("Enter second Number: "))
result = number1 * number2
print(f'The result is = {result}')
def square():
number1 = int(input("Enter Number: "))
square = number1 * number1
print(f'The square of {number1} is = {square}')
def calculator():
calculator_menu = input("""
1-> Addition
2-> subtraction
3-> multiplication
4-> square root
5-> others
select option: """)
match calculator_menu:
case '1':
print(addition()), print(main_menu())
case '2':
print(subtraction()), print(main_menu())
case '3':
print(multiplication()), print(main_menu())
case '4':
print(square_root()), print(main_menu())
case '5':
print("other options are being updated 89%..... check again"), print(main_menu())
case _:
print("invalid input"), print(main_menu())
def reminder():
print("welcome to reminder"), print(main_menu())
def clock():
clock_menu = input("""
Clock:
1-> Alarm clock
2-> Clock setting
3-> Date setting
4-> Stopwatch
5-> Countdown timer
6-> Auto update of date and time
select option: """)
match clock_menu:
case '1':
print("Alarm clock"), print(main_menu())
case '2':
print("Clock setting"), print(main_menu())
case '3':
print("Date setting"), print(main_menu())
case '4':
print("Stopwatch"), print(main_menu())
case '5':
print("Countdown timer"), print(main_menu())
case '6':
print("Auto update of date and time"), print(main_menu())
case _:
print(main_menu())
def profiles():
print("profiles being updated "), print(main_menu())
def Sim_services():
print("sim services activated"), print(main_menu())
print(nokia_phone())