chore: commit files
This commit is contained in:
19
scripts/sample_script.py
Normal file
19
scripts/sample_script.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Implement your functions here...
|
||||
|
||||
def print_v1_data(*args):
|
||||
|
||||
if args[0] == "v1":
|
||||
string = (f"Called with API version {args[0]}\n"
|
||||
f"to send to user {args[1]}\n"
|
||||
f"about {args[2]}\n"
|
||||
f"who turns {args[3]}\n"
|
||||
f"in {args[4]} days\n"
|
||||
f"with birthday being {args[5]}.\n")
|
||||
print(string)
|
||||
else:
|
||||
print("Called with a wrong API version!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("This script isn't meant be ran interactively!")
|
||||
Reference in New Issue
Block a user