|
@@ -1,8 +1,11 @@
|
|
|
+#!/usr/bin/env python3
|
|
|
+""" A simple example of function declarations and main. """
|
|
|
+
|
|
|
def example(firstargument, secondargument, thirdargument="N/A"):
|
|
|
""" Prints a string based on the two arguments. """
|
|
|
# This is python3.6 syntax:
|
|
|
# print(f"{firstargument} is the first argument.")
|
|
|
- print("{} is the first argument.".format(firstargument))
|
|
|
+ print("{a} is the first argument.".format(a = firstargument)) # Name the argument if you want
|
|
|
print("{} is the second argument.".format(secondargument))
|
|
|
print("{} is the third argument.".format(thirdargument))
|
|
|
|