Week 1: Introduction to Programming & Python Basics

Ridwan IbidunniRidwan Ibidunni
3 min read

Have you ever wanted to tell a robot exactly what to do—like walk forward, pick up a toy, and wave hello? That’s what programming is all about! In this post, we’ll explore how to talk to a computer using a special language called Python. By the end, you’ll know how to make your computer “greet the world” in just one line of code!


What is Programming?

Programming is like giving step-by-step instructions to a robot friend. When you program, you’re writing a set of commands that your computer (or robot) will follow precisely. If your instructions are clear, your robot does exactly what you want. If they’re not clear, well… your robot might do something completely unexpected!

Visual Perception Treasure Map Directions by EmmaJo OT | TPT

Analogy:
Think of it like creating a treasure map. Every arrow or mark on the map is a command telling your treasure-hunter (robot) where to go. If the arrows are in the wrong order, you might end up in the wrong place!


Why Python?

Python is one of the world’s most popular programming languages—and for good reason!

  • It’s simple: The rules of Python are easy to understand, which makes it great for beginners.

  • It’s powerful: Python can be used for everything from making games to building websites and even controlling real robots!

  • It’s friendly: You can write fewer lines of code to do big things, which leaves more room for creativity.

Analogy:
Think of Python as the language you use to talk to your robot friend. Just like you might speak English or another language, Python is the “language” that computers understand best.


Your First Python Program: “Hello, World!”

The very first program most people write in any language is a simple greeting: “Hello, World!” It’s like telling your computer, “Say hi to everyone!”

How to Do It:

  1. Open your coding tool (e.g., Google Colab) or any Python editor.

  2. Type this line of code:

print("Hello, World!")
  1. Run your code and watch what happens!

What’s Going On?

  • print("Hello, World!") tells Python to display the text “Hello, World!” on the screen.

  • It’s the first step in learning how to “talk” to your computer. By changing the text inside the quotes, you can make your computer say anything you like!


Final Thoughts & Next Steps

Learning to code is like teaching your robot friend new tricks! This week, you learned:

  • What programming is and why we use Python.

  • How to write and run your first Python program (print("Hello, World!")).

  • The importance of giving clear instructions to the computer.

Next Week Preview:

  • We’ll explore variables and data types, learning how to store and use information in your programs.

  • Get ready to make your code even more interactive!


Additional Notes to Remember

  • Spaces and Spelling Matter:
    In Python, typing Print("Hello, World!") (with a capital P) won’t work the same way as print("Hello, World!"). Computers are very literal, so be careful with spelling and punctuation.

  • Practice Makes Perfect:
    Don’t worry if you forget something. The best way to learn is by trying out different commands and seeing what happens.

  • Have Fun:
    Think of Python as a way to bring your ideas to life—like teaching a robot new tricks!


0
Subscribe to my newsletter

Read articles from Ridwan Ibidunni directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ridwan Ibidunni
Ridwan Ibidunni

I'm a mathematician that loves its applications in all spheres of life, especially in the field of machine learning. I write Java, Python and Android applications