Files
stolat/scripts/sample_script.py
2025-04-18 23:50:45 +02:00

19 lines
471 B
Python

#!/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!")