Assignment Operators in Python Explained in Hindi | Complete Python Course 2026
```html
Python เคฎें Assignment Operators เคो เคธเคฎเคें - Complete Guide 2026
Python Assignment Operators เคिเคธी เคญी เคช्เคฐोเค्เคฐाเคฎ เคฎें variables เคो values assign เคเคฐเคจे เคे เคฒिเค เคธเคฌเคธे เคฎเคนเคค्เคตเคชूเคฐ्เคฃ operators เคนैं। เค เคเคฐ เคเคช Python เคธीเค เคฐเคนे เคนैं เคคो assignment operators เคी เคชूเคฐी เคธเคฎเค เคนोเคจा เคฌเคนुเคค เคเคฐूเคฐी เคนै। เคเคธ article เคฎें เคนเคฎ เคธเคญी assignment operators เคो เคตिเคธ्เคคाเคฐ เคธे เคธเคฎเคेंเคे।
Assignment Operators เค्เคฏा เคนैं?
Assignment operators เคा เคเคชเคฏोเค variables เคฎें values เคो store เคเคฐเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै। เคฏे operators เคฆाเคं เคเคฐ เคी value เคो เคฌाเคं เคเคฐ เคे variable เคฎें assign เคเคฐเคคे เคนैं। Python เคฎें เคเค เคช्เคฐเคाเคฐ เคे assignment operators เคนोเคคे เคนैं เคो เคตिเคญिเคจ्เคจ เคाเคฐ्เคฏ เคเคฐเคคे เคนैं।
Python เคฎें Assignment Operators เคे เคช्เคฐเคाเคฐ
1. Simple Assignment Operator (=)
เคฏเคน เคธเคฌเคธे basic assignment operator เคนै เคो เคिเคธी เคญी variable เคฎें value เคो directly assign เคเคฐเคคा เคนै।
# Simple Assignment
x = 10
name = "Python"
price = 99.99
print(x) # Output: 10
print(name) # Output: Python
print(price) # Output: 99.99
2. Add and Assign Operator (+=)
+= operator เคชเคนเคฒे addition เคเคฐเคคा เคนै เคซिเคฐ result เคो variable เคฎें assign เคเคฐเคคा เคนै। เคฏเคน x = x + 5 เคे เคฌเคฐाเคฌเคฐ เคนै।
# Add and Assign
x = 10
x += 5
print(x) # Output: 15
# เคฏเคน เคเคธเคे เคธเคฎाเคจ เคนै:
# x = x + 5
# Strings เคे เคธाเคฅ
name = "Python"
name += " Programming"
print(name) # Output: Python Programming
3. Subtract and Assign Operator (-=)
-= operator subtraction เคเคฐเคคा เคนै เคเคฐ เคซिเคฐ result เคो assign เคเคฐเคคा เคนै।
# Subtract and Assign
x = 20
x -= 5
print(x) # Output: 15
# เคฏเคน เคเคธเคे เคธเคฎाเคจ เคนै:
# x = x - 5
y = 100
y -= 30
print(y) # Output: 70
4. Multiply and Assign Operator (*=)
*= operator multiplication เคเคฐเคคा เคนै เคเคฐ เคซिเคฐ value เคो assign เคเคฐเคคा เคนै।
# Multiply and Assign
x = 5
x *= 3
print(x) # Output: 15
# เคฏเคน เคเคธเคे เคธเคฎाเคจ เคนै:
# x = x * 3
quantity = 10
price = 5
total = quantity
total *= price
print(total) # Output: 50
# String เคे เคธाเคฅ (Repetition)
text = "Ha"
text *= 3
print(text) # Output: HaHaHa
5. Divide and Assign Operator (/=)
/= operator division เคเคฐเคคा เคนै। เคฏเคน เคนเคฎेเคถा float value return เคเคฐเคคा เคนै।
# Divide and Assign
x = 20
x /= 4
print(x) # Output: 5.0
# เคฏเคน เคเคธเคे เคธเคฎाเคจ เคนै:
# x = x / 4
total_price = 100
items = 4
price_
เคोเค เคिเคช्เคชเคฃी เคจเคนीं:
เคเค เคिเคช्เคชเคฃी เคญेเคें