0% found this document useful (0 votes)
14 views1 page

Python Data Types in Hinglish

The document explains variables and data types in Python using Hinglish. It outlines the rules for naming variables and lists commonly used data types such as int, float, str, bool, list, tuple, and dict. An example code snippet demonstrates the creation and printing of variables with different data types.

Uploaded by

k.nitish001705
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)
14 views1 page

Python Data Types in Hinglish

The document explains variables and data types in Python using Hinglish. It outlines the rules for naming variables and lists commonly used data types such as int, float, str, bool, list, tuple, and dict. An example code snippet demonstrates the creation and printing of variables with different data types.

Uploaded by

k.nitish001705
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

Variables & Data Types in Python (Hinglish)

**Variables in Python**
Variable ek naam hai jo memory location ko refer karta hai.
Python mein variable banane ke liye datatype likhne ki zarurat nahi hoti.
Example:
x = 10
name = 'Amit'

**Rules for variable names**


1. Variable name letter ya underscore se start hona chahiye.
2. Variable name mein alphabets, digits aur underscore ho sakte hain.
3. Keywords (jaise if, else, etc.) variable name nahi ban sakte.

**Data Types in Python**


Python mein commonly used data types ye hain:
1. int (integer) - jaise 10, 50
2. float (decimal numbers) - jaise 3.14, 2.5
3. str (string) - jaise 'Hello', 'Amit'
4. bool (boolean) - True ya False
5. list - jaise [1, 2, 3]
6. tuple - jaise (1, 2, 3)
7. dict (dictionary) - jaise {'name':'Amit', 'age':20}

**Example code**
x=5
y = 3.5
name = 'Amit'
is_student = True
print(x, y, name, is_student)
Is code mein humne different data types ke variables banaye aur print kiya.

You might also like