Card 2: Writing Your First Program

Now that you know what programming is, let's write a simple program. It's like writing a short note to a friend. We'll use Python, easy like Telugu.

Open a Text Editor

Story: Use Notepad or any simple editor. Type your code there.

Fun Fact: In Andhra Pradesh, start with free online editors if no computer.

Type the Code

Story: Write: print("Hello, Andhra Pradesh!")

Fun Fact: "Print" means show on screen, like displaying a message.

Run the Program

Story: Save as hello.py, then run with Python. It shows "Hello, Andhra Pradesh!"

Fun Fact: Like sending a greeting to the whole state!

Add More

Story: Try: print("I am learning programming!")

Fun Fact: Each line is a step in your recipe.

Your First Python Program:

print("Hello, Andhra Pradesh!")
print("I am learning programming!")
            

Key Technical Terms

Knowledge Check

What does 'print' do in Python?