Week 6 ends - Python
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import subprocess
|
||||
|
||||
people = {
|
||||
"Kelly": "+1-617-496-290900",
|
||||
"David": "+132409283402348",
|
||||
"John": "+2342390423804823048",
|
||||
"Hayet": "+974 77666327",
|
||||
}
|
||||
|
||||
name = input("Name: ")
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user