Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Python » Python Programs » Program

Print text on console using function in Python


# This program prints the entered message using function

def printFunction(text):
    print(text)

if __name__ == '__main__':
    printFunction('Hello CppBuzz')