Codesuni Logo

Python Introduction

Python is a high-level, interpreted programming language that is widely used for web development, data science, automation, artificial intelligence, and more. It is known for its simple syntax and readability.

Basic Syntax

print("Hello, World!")

Variables

x = 5
y = "Hello"
print(x)
print(y)

Indentation

Python uses indentation to define blocks of code:

TRY IT YOURSELF

if x > 2:
    print("x is greater than 2")