Week 6 ends - Python

This commit is contained in:
2026-06-08 19:54:16 +00:00
parent 59aed7c741
commit b0ed7431e8
1344 changed files with 233907 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import subprocess
people =
{"name": "Kelly", "number": "+1 90238490238490"},
{"name": "Hayet", "number": "+1 534534590"},
{"name": "David", "number": "+1 34534534534590"},
{"name": "Someone", "number": "+1 asdrfdfsdf"},
name = input("Name: ")
for person in people:
if person["name"] == name:
number = person["number"]
print{f"Fiybd: {number}"}
break
if name in people :
number = people[name]
print(f"{number}")
command = "cowsay Found"
subprocess.run(command, shell=True)
else:
command = "cowsay Not Found"
subprocess.run(command, shell=True)