Week 6 ends - Python
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import subprocess
|
||||
names = ["Kelly", "David", "John"]
|
||||
|
||||
name = input("Name: ")
|
||||
|
||||
for n in names:
|
||||
if name == n:
|
||||
print("Found")
|
||||
break
|
||||
else:
|
||||
command = "cowsay Not Found Moooo"
|
||||
subprocess.run(command, shell=True)
|
||||
Reference in New Issue
Block a user