top of page

Simple Python Programs School Students Can Practice at Home

Learning programming from a young age can boost creativity, logical thinking, and problem-solving skills. Python, being a beginner-friendly language, is perfect for school students to start with. In this blog, we share a few simple programs that students can practice at home, complete with examples, solutions, common errors, and tips to avoid them.

Python for Kids
Python for Kids

1. Program: Print Your Name

print("My name is Anu")

What It Does: Prints your name on the screen.

Common Errors:

  • Forgetting quotation marks: print(My name is Anu)  ❌

  • Using wrong quotes or forgetting parentheses in Python 3: print 'My name is Anu' ❌

Tip: Always use parentheses () and either double "" or single '' quotes for strings.

2. Program: Addition of Two Numbers

a = 5
b = 3
print("Sum:", a + b)

Common Errors:

  • Using a + b outside print() in interactive code.

  • Typing print("Sum:" a + b) instead of adding a comma or +.

Tip: Use commas to separate text and variables in print().

3. Program: Check if Number is Even or Odd

num = int(input("Enter a number: "))
if num % 2 == 0:
    print("Even")
else:
    print("Odd")

Common Errors:

  • Not converting input to integer: num = input()

  • Using = instead of == in the condition.

Tip: Always use int() for number input and == for checking equality.

4. Program: Simple Calculator (Addition, Subtraction)

a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Addition:", a + b)
print("Subtraction:", a - b)

Common Errors:

  • Missing int() conversion.

  • Typing print("Addition:" a + b) (missing comma or +).

Tip: Double-check brackets and quotes.

5. Program: Multiplication Table

num = int(input("Enter a number: "))
for i in range(1, 11):
    print(num, "x", i, "=", num * i)

Common Errors:

  • Using range(11) instead of range(1, 11).

  • Missing colon : after for.

Tip: Python uses indentation and colons for loops.

Quick Comparison: Dos and Don'ts

Task

Do

Don't

Print a string

print("Hello")

print Hello

Add numbers

print(a + b)

print("Sum:" a + b)

Take number input

int(input())

input() only

Compare numbers

if x == 5:

if x = 5:

Use loops

for i in range(1, 11):

for i in range(11) or miss :

Conclusion: These simple programs help build a strong foundation in Python. Practicing regularly and debugging patiently will develop coding confidence. Encourage students to experiment, make mistakes, and learn from them.

Would you like a downloadable worksheet with these exercises for your classroom or online session? Let us know in the comments!


If your child would like to start learning Python through a 1-on-1 or group session, even with no prior experience, feel free to reach out to us. We’re happy to help you get started!

Mail us for more details: Info@tracerouteglobal.org





Comments


Traceroute Logo

+91 79043 42330
Info@tracerouteglobal.org
Chennai, India

Subscribe to Our Newsletter

Thanks for Subscribing!

Follow Us

  • LinkedIn

© 2025 Traceroute Global Services. All rights reserved.

bottom of page