diff --git a/8-16_imports.py b/8-16_imports.py new file mode 100644 index 0000000..2e8ebe8 --- /dev/null +++ b/8-16_imports.py @@ -0,0 +1,29 @@ +# Exercise 8-16 Imports +# Learning Objective: Utilize all of the available import methods with previously made program and functions. + +#import tshirts + +#tshirts.make_shirt("L", "Hello Python World") + +#============================= + +#from tshirts import make_shirt + +#make_shirt("L", "Hello Python World") + +#============================== + +#from tshirts import make_shirt as ms + +#ms("L", "Hello Python World") + +#============================= + +#import tshirts as ts + +#ts.make_shirt("L", "Hello Python World") + +#============================= + +from tshirts import * +make_shirt("L", "Hello Python World") \ No newline at end of file diff --git a/tshirts.py b/tshirts.py new file mode 100644 index 0000000..7537f94 --- /dev/null +++ b/tshirts.py @@ -0,0 +1,3 @@ +def make_shirt(size='S', message='your text here'): + """Takes two string arguments of 'Size' and 'Message' and outputs the resulting string""" + print(f"\tNew shirt to be made:\n\tSIZE: {size}\n\tMESSAGE: {message}") \ No newline at end of file