Python example 8-3~8-4 T-shirt __python

Source: Internet
Author: User

8-3 T-shirt: Write a function called Make_shirt () that accepts a size and prints it on a T-shirt.
The words. This function should print a sentence that outlines the size and typeface of the T-shirt.
Call this function using positional arguments to make a T-shirt; Then use the keyword argument to invoke the function.
8-4 Large T-shirts: Modify the function Make_shirt () to make it by default a printed word "I love
Python's large T-shirt. Call this function to make the following T-shirt: a large T-shirt with the default typeface,
A medium T-shirt with the default typeface and a T-shirt with other words (size doesn't matter).

#coding =utf-8
#8-3 T-shirt
#8-4 large T-shirt
def make_shirt (size,look):
    print (size + ' +look) for

N in range (3) :
    make_shirt (Input ("the Size:"), ' I love Python '
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.