Python code to print text/string using user-defined method
# 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('IncludeHelp')
putMe('The world of programming')
putMe('A programming community for developer and students')
Output
Hello world!
Welcome @
IncludeHelp
The world of programming
A programming community for developer and students
Python code to print text/string using user-defined method
Output
need an explanation for this answer? contact us directly to get an explanation for this answer