Learning Python, the world's most popular programming language, is now easier than ever, especially with the internet being a treasure trove of resources. While most tutorials cater to English speakers, Urdu speakers have also embraced the digital realm, and there's a growing necessity for Python resources in Urdu. Here, we will guide you through the fundamental concepts and help you understand how to code in Python in your native language.

Before we dive in, let's first discuss why learning Python is invaluable. Python is known for its simplicity and readability, making it a great choice for beginners. It's extensively used in web development, data analysis, machine learning, and scientific computing, to name a few. Furthermore, knowing Python can improve your problem-solving skills and enhance your career prospects.

Getting Started with Python
To start your Python journey, you first need to have Python installed on your computer. We recommend using Anaconda, a distribution of Python designed for scientific computing, which comes with Jupyter Notebook, an excellent tool for coding and visualizing your results.

Once Python is installed, you can open a Jupyter Notebook, which is like a blank canvas where you can write and run code.
Hello, World!

Let's begin with the classic "Hello, World!" program. Type the following code in a new cell and press Shift + Enter to run it.
```python print(" Hello, World! ") ```
Basic Syntax and Data Types

In Python, you don't need to declare the type of a variable before assigning a value to it. Python uses indentation to define blocks of code. Here's an example:
```python x = 10 print(x) ```
Output: ```10```

Python Data Types
Python has several data types, including integers, floats, strings, lists, and dictionaries. Let's explore each of them in detail.















![Learn Python - Full Course for Beginners [Tutorial]](https://i.pinimg.com/originals/6c/29/5a/6c295a610bd559fb3a6d1be5ff0d0481.jpg)


![Shortcut to learn Python.[Cheatsheet]](https://i.pinimg.com/originals/59/eb/e1/59ebe1a2022b0681267f600246718995.jpg)

Integers are whole numbers, both positive and negative. Floats, or floating-point numbers, are numbers with decimal points.
Integers
```python x = 10 y = -20 print(x, y) ```
Output: ```10 -20```
Floats
```python a = 10.5 b = -3.14 print(a, b) ```
Output: ```10.5 -3.14```
Strings in Python
Strings are sequences of characters enclosed in quotes. You can use single, double, or triple quotes to define a string. Escape sequences can be used to include special characters like tab, newline, or backslash in a string.
```python msg = "Python is fun!" print(msg) ```
Output: ```Python is fun!```
String Methods
Python provides various built-in methods to manipulate strings. For example, you can use the lower() method to convert all the characters in a string to lowercase and the upper() method to convert them to uppercase.
Control Flow in Python
Python's control flow statements allow you to run specific blocks of code when certain conditions are met. These include if-elif-else statements and loops like for and while.
If-Elif-Else Statements
The following code uses an if-elif-else statement to check if a number is positive, negative, or zero:
```python num = 10 if num > 0: print("Number is positive.") elif num < 0: print("Number is negative.") else: print("Number is zero.") ```
Output: ```Number is positive.```
For and While Loops
You can use for loops to iterate over a sequence of values or while loops to repeatedly execute a block of code until a certain condition is no longer true.
arlaam, abhi tak aap ne Python programming ka pehla adhyayana kiya hai. Maggi ka natajiya hoga, lekin abhi searksils afrad gay kiya jaata hai. Kripya Python ka sutee par sanchalana jarkar aapko ek shandar abhinayak banaye. Bujhare hue mujhse aurhi kabhi bhi sawal kar sakte ho. Shubh izat!