A Beginner's Guide
Python is a popular, high-level programming language known for its readability. It is used in web development, AI, automation, data science, cybersecurity, scientific computing and more.
python hello.py.print("Hello, World!")
name = "Alice" age = 16 print(name, age)
Variables store information.
x = 10 pi = 3.14 student = True
| Type | Example |
|---|---|
| int | 5 |
| float | 3.14 |
| str | "Hello" |
| bool | True |
| list | [1,2,3] |
age = 18
if age >= 18:
print("Adult")
else:
print("Child")
for i in range(5):
print(i)
while False:
pass
def greet(name):
print("Hello", name)
greet("Python")