Completed Exercise 8-16 Imports

This commit is contained in:
cheeks 2025-02-27 00:20:23 +00:00
parent fee249807d
commit 8301da2095
2 changed files with 32 additions and 0 deletions

29
8-16_imports.py Normal file
View File

@ -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")

3
tshirts.py Normal file
View File

@ -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}")