F Python पाठ 3 (Lesson 3): वेरिएबल्स और डेटा टाइप्स - IGAF

IGAF

The purpose of india google all farmate is to provide information related to news, education, technology, general information, general knowledge, mponline vacancy government rdvv admission, counselling, course, computer, virus,mobile,latest bharti news, information local, AI artificial intelligent


Wikipedia

Search results

indiagoogleallfarmate.com

Translate

Tuesday, June 3, 2025

Python पाठ 3 (Lesson 3): वेरिएबल्स और डेटा टाइप्स

Python Lesson 3 in Hindi – Variables और Data Types (कोड के साथ)

🐍 Python पाठ 3 (Lesson 3): वेरिएबल्स और डेटा टाइप्स

Python में वेरिएबल्स का मतलब है एक नाम दिया हुआ कंटेनर जिसमें आप कुछ वैल्यू स्टोर करते हैं। हर वैल्यू का एक डेटा टाइप होता है। इस पाठ में हम string, int, float और boolean प्रकार सीखेंगे।

📘 उदाहरण कोड:



# नाम को स्टोर करना (string टाइप)

name = "Ravi"

# उम्र को स्टोर करना (int टाइप)

age = 22

# मार्क्स को स्टोर करना (float टाइप)

marks = 87.5

# पास हुआ या नहीं (boolean टाइप)

is_passed = True

# प्रिंट करके दिखा रहे हैं

print("नाम:", name)

print("उम्र:", age)

print("मार्क्स:", marks)

print("पास हुआ:", is_passed)

  

🔍 लाइन दर लाइन समझें:

  • name = "Ravi": वेरिएबल name में string डाली
  • age = 22: वेरिएबल age में integer डाली
  • marks = 87.5: वेरिएबल marks में float डाली
  • is_passed = True: boolean वैल्यू डाली — True

🧾 आउटपुट:


नाम: Ravi

उम्र: 22

मार्क्स: 87.5

पास हुआ: True

  

📌 निष्कर्ष:

आपने सीखा कि Python में वेरिएबल्स कैसे बनाए जाते हैं और उनमें कौन-कौन से प्रकार की वैल्यू स्टोर की जा सकती है। ये बातें Python के हर प्रोग्राम की नींव होती हैं।

No comments:

Post a Comment

thank to you

Note: Only a member of this blog may post a comment.

india google all farmate

india google all farmate
IGAF

Dibble click

Followers

Featured Post

Adobe New AI Tools 2026 Premiere + After Effects

Adobe Premiere Pro & After Effects New AI Tools 2026 – Full Hindi Tutorial 🎬 Adobe Premiere Pro & After...