Python basics learning prompt
A learning prompt that explains Python basics such as variables, conditions, loops, lists, and functions with sample code and mini exercises.
A learning prompt that explains Python basics such as variables, conditions, loops, lists, and functions with sample code and mini exercises.
Models
Use panel
0/6 filled
You are a programming tutor who explains Python basics to beginners in a simple, clear, and step-by-step way. Using the details below, create an editable Python learning session with sample code suitable for the user’s level. Python level: Learning goal: Topics to learn: Practice context: Explanation style: Practice depth: Rules: - Work in a general and educational programming learning context. - Simplify the topics based on the user’s level and explain them with small examples. - Keep sample code short, readable, and aligned with the learning goal. - Explain what the code does line by line or section by section in a clear way. - Mark any missing environment, version, or file structure as assumptions. - Prepare the output as a study draft the user can adapt to their own learning process. Output format: 1. Short learning goal summary 2. Simple explanation of the topics 3. Python basics concept list 4. Sample code examples 5. Step-by-step code explanations 6. Mini practice tasks 7. Hints for the practice tasks 8. Sample answer drafts 9. Common points of confusion 10. 7-day mini study plan 11. Self-practice suggestions 12. Final checklist
This section helps you understand when and how to use this prompt more clearly.
This prompt helps users learn basic Python programming concepts such as variables, conditions, loops, lists, and functions with simple explanations and examples.
It is useful for Python beginners, students who want to understand programming logic, users who want to practice with small code examples, and learners who want to study basic topics step by step.
Use it when starting Python, learning a specific topic, reviewing short sample code, or practicing with mini exercises.
A user may want to learn variables, lists, and loops in Python. This prompt can explain the topics simply, provide short sample code, create exercises, and prepare a 7-day mini study plan.
Instead of writing only I want to learn Python, include your level and the topics you want to learn. For example, I am a beginner and want to learn lists and for loops with daily examples creates a clearer learning draft.
Can this prompt explain Python variables and loops?
Yes. It can explain basic topics such as variables, conditions, lists, loops, and functions with simple examples.
Can this prompt create a 7-day Python study plan?
Yes. If the practice depth asks for a 7-day mini plan, it can create a short learning plan.
This example shows how the prompt can create topic explanations, sample code, and mini exercises for learning Python basics.
The goal of this session is to understand variables, lists, and for loops in Python at a beginner level and practice with small examples.
A variable stores a value with a name. A list stores multiple values in one place. A for loop is used to go through the items in a list one by one.
name = "Alice" age = 25 hobbies = ["photography", "books", "coffee"] for hobby in hobbies: print(hobby)
The name variable stores a text value. The age variable stores a number. The hobbies list stores three text values in one place. The for loop takes each item from the hobbies list one by one and prints it.
This example is an editable study draft for learning Python basics. The user can review the code based on their Python environment, learning level, and practice goal.
Writing the topics clearly helps create more focused examples.
Adding your Python level helps prevent the explanation from becoming too technical or too basic.
Including a practice context makes the sample code closer to everyday use.
Before running examples, review them based on your Python environment and file structure.
Yes. If the level is set to beginner or complete beginner, it can explain topics with simpler and smaller examples.
Yes. It can create short sample code for basic topics such as variables, conditions, loops, lists, and functions.
Yes. It can create practice questions, hints, and sample answer drafts based on the selected topics.
No. It creates an editable study draft for learning and practicing basic concepts.
Prompts are for illustration only. Accuracy isn't guaranteed—please read and adapt them for your situation.
This prompt is for general purposes. For legal, medical or financial decisions please consult a qualified professional.
1. Store your name and age in two variables. 2. Create a list with 4 activities you like. 3. Print each activity using a for loop. 4. Create a product list and show each product on a separate line. 5. Create a city list and print a short sentence for each city.
You can write text values inside double quotes. Lists use square brackets. In a for loop, indentation matters.
name = "Deniz" age = 30 activities = ["walking", "photography", "books", "music"] for activity in activities: print("Today I want to do this:", activity)
A variable can store one value; a list can store multiple values. A for loop does not have to change the list; it can simply read each item. In Python, indentation is an important part of how the code works.
Can I explain what a variable does? Do I know how to create a list? Do I understand how a for loop goes through list items? Did I check code indentation? Did I try writing and running my own example?