-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
48 lines (41 loc) · 1.75 KB
/
run.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
import os
from base.base import OptionHandler
'''
type in google: ridwaanhall
'''
def clear_screen():
"""
Function to clear the console screen.
"""
os.system('cls' if os.name == 'nt' else 'clear')
if __name__ == "__main__":
option_handler = OptionHandler()
while True:
clear_screen()
print("+========================================+")
print("| WELCOME TO PEMILU 2024! (REAL COUNT) |")
print("+========================================+")
print("| Choose an option: |")
print("| 1. Fetch data from URL 1 - json |")
print("| 2. Fetch data from URL 2 - json |")
print("| 3. Fetch data from URL 3 - json |")
print("+----------------------------------------+")
print("| 4. names of capres and cawapres |")
print("| 5. region |")
print("+----------------------------------------+")
print("| 6. regional statistics |")
print("| 7. total statistics |")
print("+----------------------------------------+")
print("| search detail option: |")
print("| 8. search detail |")
print("+----------------------------------------+")
print("| 9. LIST OF DISPUTES |")
print("+----------------------------------------+")
print("| 0. Exit |")
print("+========================================+")
option = input("Enter your choice: ")
if option == '0':
print("Exiting...")
break
option_handler.perform_option(option)
input("\nPress Enter to continue...")