Python program to print given text using a user-defined method

Python program to print given text using a user-defined method

Python program to print given text using a user-defined method

The errand to make a client characterized strategy and we need to pass a book/string that ought to be printed on the screen.

In the underneath program, we are characterizing a technique named putMe() it will acknowledge a string/content and print it on the screen utilizing print() python.

Python code to print content/string utilizing client characterized technique:

# Python code to print text/string using 
# user-defined method

# function defintion of "putMe()"
# it will accepts a string and print it on the screen
def putMe(text):
    # printing text on the screen
    print(text)

# main code
if __name__ == '__main__':
    putMe('Hello world!')
    putMe('Welcome @')
    putMe('JustTechReview')
    putMe('JustTechReview')
    putMe('A Blog to help students learn Programming')

Output:

Recent Posts

error: Alert: Content is protected!!