---
title: "Discussion on \"Python & OpenAI beginner journey 2 | def main()\" | Hashnode"
description: "Discussion on \"Python & OpenAI beginner journey 2 | def main()\". For the first few python documents I wrote, I just started writing my code on an empty page, before I learned about main().\nFor some time I always asked ChatGPT to generate the main function for me since I could never remember how exactly it has to l..."
url: "https://hashnode.com/posts/python-openai-beginner-journey-2-def-main/657ff5ecf60727e047b4e615"
---

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

Discussion

# [Python & OpenAI beginner journey 2 | def main()](https://gregorschafroth.hashnode.dev/python-openai-beginner-journey-2-def-main?utm_source=hashnode&utm_medium=feed)

For the first few python documents I wrote, I just started writing my code on an empty page, before I learned about main(). For some time I always asked ChatGPT to generate the main function for me since I could never remember how exactly it has to l...

Dec 18, 2023 · 1 min read · gregorschafroth.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#openai](https://hashnode.com/tag/openai)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#main](https://hashnode.com/tag/main)

## Written by

[Gregor Schafroth](https://hashnode.com/@gregorschafroth)

@gregorschafroth · Switzerland / London

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

Entrepreneur & Junior Programmer, currently learning how to build an OpenAI Assistant's API Chat-bot app with Python, Flask, Heroku, etc.

Entrepreneur &amp; Junior Programmer, currently learning how to build an OpenAI Assistant's API Chat-bot app with Python, Flask, Heroku, Celery, Redis, etc.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
