0% found this document useful (0 votes)
17 views3 pages

Python Programming Basics Guide

Python is a high-level, interpreted programming language known for its simplicity and readability. It covers fundamental programming concepts such as variables, data types, conditions, loops, functions, lists, dictionaries, classes, file handling, and modules. The document emphasizes the importance of daily practice to improve Python skills.

Uploaded by

rainbow4650
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Python Programming Basics Guide

Python is a high-level, interpreted programming language known for its simplicity and readability. It covers fundamental programming concepts such as variables, data types, conditions, loops, functions, lists, dictionaries, classes, file handling, and modules. The document emphasizes the importance of daily practice to improve Python skills.

Uploaded by

rainbow4650
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

# Python Notes

## 1. Introduction

Python is a high-level, interpreted programming language known for its simplicity and readability.

## 2. Variables

Variables store data:

```

x = 10

name = "Faizan"

```

## 3. Data Types

- int

- float

- string

- boolean

- list

- tuple

- dictionary

## 4. Conditions

```

if x > 5:

print("Greater")

else:

print("Smaller")

```

## 5. Loops

### For loop:


```

for i in range(5):

print(i)

```

### While loop:

```

i=0

while i < 5:

print(i)

i += 1

```

## 6. Functions

```

def add(a, b):

return a + b

```

## 7. Lists

```

fruits = ["apple", "banana", "mango"]

```

## 8. Dictionaries

```

person = {"name": "Faizan", "age": 22}

```

## 9. Classes

```
class Car:

def __init__(self, brand):

[Link] = brand

```

## 10. File Handling

```

with open("[Link]", "r") as f:

data = [Link]()

```

## 11. Modules

```

import math

print([Link](16))

```

## 12. Conclusion

Python is powerful and easy to learn. Practice daily to improve your skills.

You might also like