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

Home » Python » Python program » Print Messages

Python program to print messages

# Author: CppBuzz.com
# This program prints the entered message
# Date: 22nd Aug 2020


def txtprint(text):
    """This function prints the text passed as argument to this function"""
    print(text)


if __name__ == '__main__':
    txtprint('Hello - This is my first program')
    txtprint('Hello - This is my second program')

Scope of variable in Python