LightReader

Chapter 11 - Chapter 11: Python A New Language

The computer screen slowly came back to life.

Pran sat quietly in the chair, staring at the dark monitor.

A few seconds earlier, the system had shut down after completing the final challenge.

But now something new was happening.

A small message appeared.

SYSTEM REBOOTING

The cursor blinked.

Then another line appeared.

NEW PROGRAMMING MODULE DETECTED

Pran leaned closer.

"A new module?"

The robot appeared again on the screen.

[^_^]

/| |\

/ \

Below it, the system printed another message.

LANGUAGE TRANSITION REQUIRED

Pran raised an eyebrow.

"Transition?"

The computer continued.

PREVIOUS LANGUAGE: C

NEXT LANGUAGE: PYTHON

Pran had heard of Python before.

Many programmers said Python was one of the easiest languages to learn.

It was used for:

• artificial intelligence• automation• web development• data science• games

And many beginners started their programming journey with it.

But Pran already had something powerful now.

He understood how programming works.

Variables.

Loops.

Conditions.

Functions.

Those ideas work in almost every language.

The system printed another message.

INITIALIZING PYTHON ENVIRONMENT

The screen flickered again.

Then something surprising happened.

A code editor opened automatically.

But the code looked… different.

Pran saw this:

print("Hello, World!")

He blinked.

"That's it?"

No #include.

No int main().

No semicolons.

Just one line.

The computer printed another message.

PYTHON USES SIMPLER SYNTAX

Pran typed the program exactly as shown.

print("Hello, World!")

He pressed run.

The output appeared instantly.

Hello, World!

Pran smiled.

"That was way easier than C."

The robot nodded.

[^_^]

Python is designed to be simple and readable.

Many programmers say Python code almost looks like plain English.

For example, printing text only requires:

print("Hello")

That's it.

No extra setup needed.

Pran tried another example.

print("Welcome to Python")

The output appeared.

Welcome to Python

Pran leaned back in the chair.

"So the computer understands this language too."

The system displayed another message.

LANGUAGE COMPARISON

Then it showed two examples.

C version:

#include

int main() {

printf("Hello\n");

return 0;

}

Python version:

print("Hello")

Pran laughed.

"Okay… that's a big difference."

But even though Python looks simpler, the core ideas remain the same.

Programs still need:

• variables• decisions• loops• functions

Those ideas never change.

Only the syntax changes.

The system printed another message.

FIRST PYTHON PROGRAM COMPLETED

Then another line appeared.

NEXT TASK: USER INPUT

Pran smiled.

"That sounds familiar."

In C, he had used scanf to receive input from the user.

But Python had its own way.

The screen showed the next piece of code.

name = input("What is your name? ")

Pran leaned forward.

"That looks simple."

The robot explained.

The function input() asks the user for text.

The result is stored in a variable.

Pran typed the full program.

name = input("What is your name? ")

print("Hello", name)

He ran the program.

The screen asked:

What is your name?

Pran typed:

Pran

The computer responded.

Hello Pran

Pran nodded.

"Okay… Python is definitely friendlier."

The robot moved slightly again.

[^o^]

Another system message appeared.

PYTHON MODULE PROGRESS: 10%

Pran smiled.

"A whole new journey."

He looked at the blinking cursor.

Programming suddenly felt different.

Less scary.

More like learning new ways to solve problems.

And Python looked like a language built for exploration.

The cursor blinked again.

_

Waiting.

Ready for the next command.

Pran cracked his knuckles.

"Alright Python," he said.

"Let's see what you can do."

More Chapters