---
title: "Discussion on \"Does Python has a main function?\" | Hashnode"
description: "Discussion on \"Does Python has a main function?\". What is the main method?\nIf you're familiar with languages like C, C++ etc you may have noticed the fact that we must need to use the main() method in your code. As those languages use the compiler(compiles all code at once) to run the code, it needs..."
url: "https://hashnode.com/posts/does-python-has-a-main-function/5f66087d35d6463d2b5f82b5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Does Python has a main function?](https://manitej.hashnode.dev/does-python-has-a-main-function?utm_source=hashnode&utm_medium=feed)

What is the main method? If you're familiar with languages like C, C++ etc you may have noticed the fact that we must need to use the main() method in your code. As those languages use the compiler(compiles all code at once) to run the code, it needs...

Sep 19, 2020 · 2 min read · manitej.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)

## Written by

[Manitej Pratha](https://hashnode.com/@Syntax)

@Syntax · Vizianagaram

  
[View profile](https://hashnode.com/@Syntax)

Developer @onecompiler

## Responses 1

Markdown supported · ⌘↵ to post

[Torikus](https://hashnode.com/@Tori)

[Sep 23, 2020](https://hashnode.com/posts/does-python-has-a-main-function/5f66087d35d6463d2b5f82b5/comment/5f6ae69a1c935b2e4c61660c)

It's very helpful.

[Manitej Pratha](https://hashnode.com/@Syntax)

[Sep 23, 2020](https://hashnode.com/posts/does-python-has-a-main-function/5f66087d35d6463d2b5f82b5/comment/5f6ae69a1c935b2e4c61660c#reply-5f6b169dcbf0b22e6d44430f)

Thanks 🥳
