Skip to content

Instantly share code, notes, and snippets.

@lksudha
Created May 16, 2025 05:29
Show Gist options
  • Select an option

  • Save lksudha/489550ad1ee8bd437d285e51ac01a708 to your computer and use it in GitHub Desktop.

Select an option

Save lksudha/489550ad1ee8bd437d285e51ac01a708 to your computer and use it in GitHub Desktop.
prompt improvement to learn py using notebooklm
Okay, I understand. I'm sorry that the prompts still aren't visible despite my attempts to format them. This is unusual.
It seems like the way the prompt text was formatted (even inside code blocks) might not be displaying correctly in your environment.
I will try presenting the prompt text again, this time using *only* plain text, without any special formatting like code blocks or bolding within the prompt itself. I will use simple text markers to show you exactly where each prompt option begins and ends.
Please look for these markers and the plain text in between them.
---
Here is the first option (Concise):
--- START OF CONCISE PROMPT ---
Using the uploaded documents:
1. "Python Skill Roadmap (Beginner to Intermediate)"
2. "My Python Project Code"
Analyze "My Python Project Code" in the context of the "Python Skill Roadmap". Identify areas in the code that could be refactored or improved using concepts and techniques mentioned in the intermediate sections of the roadmap. Suggest specific refactoring exercises based on these findings, explaining why each refactoring aligns with intermediate-level best practices from the roadmap.
--- END OF CONCISE PROMPT ---
---
Here is the second option (More Detailed):
--- START OF DETAILED PROMPT ---
I have uploaded two documents:
1. "Python Skill Roadmap (Beginner to Intermediate)": This outlines the key concepts and skills needed to progress from a beginner to an intermediate Python developer.
2. "My Python Project Code": This is code I have written previously.
My goal is to use these documents with NotebookLM to improve my Python coding skills, specifically targeting the intermediate level outlined in the roadmap.
Please act as a coding mentor and use these documents to:
1. Understand the key stages and topics covered in the "Python Skill Roadmap".
2. Review and analyze "My Python Project Code".
3. Identify specific sections, functions, or patterns in my code that demonstrate beginner-level approaches or could be significantly improved using intermediate-level techniques from the roadmap (e.g., better function design, class usage, error handling, list comprehensions, generators, etc. - depending on the roadmap content).
4. For each identified area, propose a concrete refactoring exercise. Describe what needs to be changed.
5. Explain why the suggested refactoring is beneficial, explicitly referencing the relevant intermediate concepts or best practices from the "Python Skill Roadmap".
6. Suggest potential follow-up exercises or topics I should focus on based on common patterns observed in my code and the roadmap's progression.
Present the refactoring suggestions clearly, perhaps section by section or grouped by topic.
--- END OF DETAILED PROMPT ---
---
Here is the third option (Focus on Iteration):
--- START OF ITERATIVE PROMPT ---
I have uploaded:
1. "Python Skill Roadmap (Beginner to Intermediate)"
2. "My Python Project Code"
My aim is to improve my Python skills towards the intermediate level using these documents.
Let's approach this iteratively. First, analyze the "Python Skill Roadmap" and summarize the key characteristics of an intermediate Python developer according to this document.
Once you understand the roadmap, analyze "My Python Project Code".
Then, propose the top 3-5 most impactful refactoring exercises from "My Python Project Code" that directly relate to moving from beginner to intermediate skills as defined by the roadmap. For each exercise:
- Point to the relevant code section.
- Describe the refactoring task.
- Explain the intermediate concept from the roadmap that this addresses.
- Explain the benefit of the refactoring.
After reviewing these initial suggestions, I may ask for more exercises, explanations, or examples.
--- END OF ITERATIVE PROMPT ---
---
Please let me know if you can see these plain text versions of the prompts now. If you still cannot, there might be a deeper issue with how you are viewing the response, and I can try to offer suggestions on that front.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment