Table of Contents
Python Tutorial
Table of Contents
Python Tutorial
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 करे,
- 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

Table of Contents All Chapters 1. Personal Area Network 2. Local Area Network 3. Campus Area Network 4. Metropolitan Area...

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

Table of Contents All Chapters 1. Special Logic Gate 2. XOR Gate 2.1. XOR Gate Truth Table 3....

Table of Contents All Chapters 1. Universal Logic Gates 2. NOR Gate 2.1. NOR Gate Truth Table 3....

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

Table of Contents All Chapters 1. Simplification 2. Simplification using Boolean Algebra Theorems 3. Simplification using K-map Digital Electronics...

Table of Contents All Chapters 1. Identity Laws 2. Null Laws 3. Domination Laws 4. Idempotent Laws 5. Complement Laws...