Prompt to ChatGPT 5.3 Instant
I am teaching my sister Python coding. She is a complete novice to Python and programming. I asked her to do some very-very simple problems that can be solved in 1-2 lines of code like: - Print first ten numbers starting from 0 - Print first ten even numbers - Print table of 3 - Print characters in your full name - Print characters at even indices of your full name (note: indexing starts from 0) Can you give 25-30 more problems that are this simple?
That’s a great way to teach—tiny problems with immediate feedback work really well for beginners 👍
Since she’s just starting, I’ll keep these 1–3 line solvable, focused on loops, strings, and basic Python built-ins.
🧩 30 Simple Python Practice Problems
🔢 Numbers & Loops (Very Basic)
-
Print numbers from 5 to 15
-
Print numbers from 10 to 1 (reverse order)
-
Print all odd numbers from 1 to 20
-
Print squares of numbers from 1 to 10
-
Print cubes of numbers from 1 to 5
-
Print numbers divisible by 3 between 1 and 30
-
Print the sum of first 10 natural numbers
-
Print multiplication table of 7
-
Print numbers from 1 to 20, but skip multiples of 4
-
Print numbers from 1 to 20, stop when number is 13
🔤 Strings (Very Important for Beginners)
-
Print each character of the word
"Python" -
Print characters of your name in reverse
-
Print only vowels in your name
-
Count number of characters in your name
-
Print first and last character of your name
-
Convert your name to uppercase
-
Convert your name to lowercase
-
Print characters at odd indices of your name
-
Replace all
'a'in your name with'*' -
Check if a given word is in uppercase
🔄 Built-in Functions Practice
-
Find maximum of these numbers:
[3, 7, 2, 9, 5] -
Find minimum of these numbers
-
Find sum of numbers in a list
-
Find length of a list
-
Sort a list of numbers
-
Convert a number to string
-
Convert string
"123"to integer -
Find absolute value of
-25 -
Round off
3.7 -
Generate a list of numbers from 1 to 10 using
range()
🎯 Slightly Fun / Thinking (Still Easy)
-
Print
"Hello"5 times -
Print
"Hi"3 times using a loop -
Print numbers from 1 to 10 with
"Number:"before each (e.g., Number: 1) -
Print all characters except spaces in
"My Name Is" -
Count how many times
'a'appears in"banana"
💡 Teaching Tip (Important)
Once she solves a few, ask:
-
“Can you do this in a different way?”
-
“Can you make it shorter?”
-
“Can you use a built-in function instead?”
This builds real understanding instead of memorization.
No comments:
Post a Comment