Completed Exercise 8-16 Imports
This commit is contained in:
parent
fee249807d
commit
8301da2095
29
8-16_imports.py
Normal file
29
8-16_imports.py
Normal 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
3
tshirts.py
Normal 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}")
|
||||
Loading…
x
Reference in New Issue
Block a user