if __name__ = python code example Example 1: if __name__ == '__main__' if __name__ == "__main__": Example 2: if__name__== '__main__': if__name__== '__main__':