Python Variable in Hindi

What is Variable in Python

Python variable :   variable किसी memory location का नाम होता है जिसमें हम data store करते हैं , variable में कोई भी data store करने के लिए हम assign operator ( = ) का use करते हैं।

python में variable को screen पर दिखाने के लिए ‘print’ function का use करते हैं. हम print function में comma का  use करके variable को कई तरीके से screen पर दिखा सकते हैं. जैसा कि example में दिखाया गया है। 

नीचे example में देखिए

इस example मे fruit और x variables है जिनमे apple और x मे 10 को assign operator ( = ) की help से data को variables मे assign किया गया है । फिर हमने print( ) Function की help से fruit और x के अंदर के data  को screen पर show किया है। 

Some important points for variable declaration

1.   variable का नाम alphabet ( a-z, A-Z ) या underscore (_) से शुरू हो सकता है but यह digit ( 0-9 ) से शुरू नहीं होता है, हां हम digit को नाम के बीच में use कर सकते हैं। 

2.   variable case sensitive होता है मतलब a और A दोनों अलग-अलग variable होंगे.

3.   variable के value (data) को कभी भी update किया जा सकता है, हमने कोई variable x लिया है जिसमें की 10 assign किया गया है, बाद में हम x में 15 assign कर देते हैं, तो यह value update हो जाएगी अब x में data 10 की जगह 15 हो गई है।

4.  python में हम चाहे तो एक ही line में multiple variable को value assign  कर सकते हैं, और हम same value को multiple variable में भी assign कर सकते हैं।  

example को देखिए और समझाइए.

उम्मीद करते है कि आपको python variable अच्छे समझ मे आ गया होगा । अपने learning को continue रखने के लिए next button पर click करे,

Add a comment...

  • All Posts
  • Artificial Intelligence
  • Computer Fundamentals
  • Computer Networks
  • Data Analytics
  • Data Science
  • DBMS
  • Deep Learning
  • Digital Electronics
  • DSA with Python
  • Excel
  • Exercise
  • Git & Github
  • Machine Learning
  • Matplotlib
  • Natural Language Processing
  • NumPy
  • Operating System
  • Pandas-s
  • Power BI
  • Python Tutorial
  • Scikit-learn
  • Seaborn
  • SQL & MySQL
computer networks

Table of Contents All Chapters 1. OSI Model      1.1. Physical Layer      1.2. Data Link Layer  ...

computer networks

Table of Contents All Chapters 1. Topology 2. Types of Topology      2.1. Point to Point Topology    ...

computer networks

Table of Contents All Chapters 1. Data Communication 2. Types of Data Communication      2.1. Simplex      2.2....

digital electronics number system

Table of Contents All Chapters 1. Logic Gate 2. AND Gate      2.1. AND Gate Truth Table 3. OR...

Edit Template

Sign up to track your learning

Login to continue your learning tracking

To reset your password, please enter your email address or username below.

Scroll to Top