Python if __name__ '__main__'

Channel Avatar
Comment
X
Share
Python if __name__ '__main__'
Python if __name__ '__main__'
python if __name__ ‘__main__’ name main tutorial example explained

#python #name #main

# ***********************************
# if __name__ ‘__main__’
# ***********************************

# y tho?
# 1. Module can be run as a standalone program
# or
# 2. Module can be imported and used by other modules

# Python interpreter sets /”special variables/

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: python, Programming, Computer Science, Video Tutorial, Tutorial, How to, How-to, Software, Software Engineering, Development, Python (Programming Language), name, main, Python Tutorial, python tutorials

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *