User Tools

Site Tools


dev:chatgpt_for_python

I can’t believe ChatGPT has helped me learn Python. Here are some prompts you can use to learn Python quickly.

1. Create a roadmap to study Python with ChatGPT Prompt: “Act as a programming mentor. I want to learn Python for [field of interest]. Create a roadmap to learn Python each week and add resources to study each week”

2. Ask for alternative solutions Prompt: “Show me different approaches to solve the exercise below” [Paste exercise here]

3. Brainstorm unique projects Prompt: “Act as a programming mentor. I’m learning Python and have already learned [topic 1, topic 2, …]. What Python projects can I solve? Consider that I like [thing 1, thing 2, …]“

4. Add comments to other peoples’ code Prompt: “Add inline comments to the code below and explain what it's doing.” [Paste script here]

5. Translate code: For this one, I don’t have a formula, but below are some examples.

- If you know the syntax to fill null data in a SQL table, you can ask ChatGPT to find the equivalent function and translate the SQL query to pandas code. - If you have created a function in R and want to adapt it to Python, you can ask ChatGPT for help.

If you’d like to know more ways to use ChatGPT to learn Python, check out my FREE ChatGPT cheat sheet:

chatgpt_cheat_sheet.pdf

dev/chatgpt_for_python.txt · Last modified: 2023/07/27 13:21 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki