You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
413 B
26 lines
413 B
4 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
|
||
|
def cat():
|
||
|
print("Meow")
|
||
|
|
||
|
def dog():
|
||
|
print("Woof")
|
||
|
|
||
|
def cow():
|
||
|
print("Moo")
|
||
|
|
||
|
def main():
|
||
|
if len(sys.argv) > 1 and sys.argv[1] == "cat":
|
||
|
cat()
|
||
|
elif len(sys.argv) > 1 and sys.argv[1] == "dog":
|
||
|
dog()
|
||
|
elif len(sys.argv) > 1 and sys.argv[1] == "cow":
|
||
|
cow()
|
||
|
else:
|
||
|
print("HELLO WORLD")
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|