Skip to content

Commit 38a0f8b

Browse files
authored
Add files via upload
1 parent ae14f09 commit 38a0f8b

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

project/orderList.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## List Software Favorit
2+
List1 = ["Adobe Photoshop", "Adobe Premiere Pro", "Davinci Resolve", "Blender", "Cinema 4D","Keluar"] #ini list
3+
4+
## Daftar Software
5+
def Daftar_Software():
6+
print("=== Daftar SoftWare ===")
7+
for i, item in enumerate(List1, start=1):
8+
print(f"{i}. {item}")
9+
10+
## Input Software And Condition
11+
def main():
12+
while True:
13+
Daftar_Software()
14+
try:
15+
pilihan = int(input("Pilih Software Favorit: "))
16+
if pilihan == 6:
17+
print("Keluar dari program....")
18+
break
19+
elif 1 <= pilihan <= len(List1):
20+
print(f"✔️ Silakan memilih: {List1[pilihan - 1]}")
21+
else:
22+
print("❌ Pilihan Tidak Ada.")
23+
except ValueError:
24+
print("Masukkan angka :")
25+
26+
main()

0 commit comments

Comments
 (0)