Welcome to graphicdesigntutorialinhindi.blogpost.com This blog helps you to learn Graphic design in Hindi, Python tutorial in Hindi, c programming in Hindi, we design free courses like("Python in Hindi", "C in Hindi", "graphic design in Hindi" and many more) for a programmer.
![]() |
python tutorial in Hindi |
ऑपरेटर्स वे निर्माण हैं जो ऑपरेंड के मूल्य में हेरफेर कर सकते हैं।
अभिव्यक्ति पर विचार करें 4 + 5 = 9. यहां, 4 और 5 को ऑपरेंड और + को ऑपरेटर कहा जाता है।
Types of Operator of python in Hindi
पायथन भाषा निम्नलिखित प्रकार के ऑपरेटरों का समर्थन करती है।
- Arithmetic Operators
- Comparison (Relational) Operators
- Assignment Operators
- Logical Operators
- Bitwise Operators
- Membership Operators
- Identity Operators
Python Arithmetic Operators in hindi
मान लें कि वैरिएबल एक होल्ड 10 और वैरिएबल बी 20 है, तो -
Operator Description Example
+ Addition Adds values on either side of the operator. a + b = 30
- Subtraction Subtracts right hand operand from left hand operand. a – b = -10
* Multiplication Multiplies values on either side of the operator a * b = 200
/ Division Divides left hand operand by right hand operand b / a = 2
% Modulus Divides left hand operand by right hand
operand and returns remainder b % a = 0
** Exponent Performs exponential (power) calculation on
operators a**b =10 to the power 20
// Floor Division - The division of operands where
the result is the quotient in which the digits after
the decimal point are removed.But if one of the operands
is negative, the result is floored, i.e.,rounded away from zero
(towards negative infinity) − 9//2 = 4 and 9.0//2.0 = 4.0, -11//3 = -4, -11.0//3 = -4.0
Comparison Operators of python in hindi
ये ऑपरेटर उनके दोनों तरफ के मूल्यों की तुलना करते हैं और उनके बीच संबंध तय करते हैं। उन्हें रिलेशनल ऑपरेटर भी कहा जाता है।
मान लें कि वैरिएबल एक होल्ड 10 और वैरिएबल बी 20 है, तो -
![]() |
comparison operator of python in Hindi |
Python Assignment Operators in Hindi
मान लें कि वैरिएबल एक होल्ड 10 और वैरिएबल बी 20 है, तो -
![]() |
Assignment Operators
|
Python Bitwise Operators
बिटवाइज़ ऑपरेटर बिट पर काम करता है और बिट ऑपरेशन द्वारा बिट करता है। मान लें तो = a 60; और बी = 13; अब द्विआधारी प्रारूप में उनके मूल्य क्रमशः 0011 1100 और 0000 1101 होंगे। निम्नलिखित तालिका में उन उदाहरणों के साथ पायथन भाषा द्वारा समर्थित बिटवाइज़ ऑपरेटरों को सूचीबद्ध किया गया है, हम उपरोक्त दो चर (a और b) को ऑपरेंड के रूप में उपयोग करते हैं -
b) as operands −
a = 0011 1100
b = 0000 1101
-----------------
a&b = 0000 1100
a|b = 0011 1101
a^b = 0011 0001
~a = 1100 0011
![]() |
Bitwise operators of python in Hindi |
Logical Operators of Python in Hindi
![]() |
logical operators in python |
पायथन भाषा द्वारा समर्थित तार्किक ऑपरेटर निम्नलिखित हैं। वेरिएबल a होल्ड 10 और वेरिएबल b होल्ड्स 20 तब मान लें
Learn Membership Operators of python in Hindi
पायथन के सदस्यता संचालक एक अनुक्रम में सदस्यता के लिए परीक्षण करते हैं, जैसे कि तार, सूची या टुपल्स। नीचे बताए अनुसार दो सदस्यता संचालक हैं -
![]() |
Membership Operators of python in Hindi |
Python Identity Operators
![]() |
python identity operators |
Python Operators Precedence
निम्न तालिका सभी ऑपरेटरों को उच्चतम वरीयता से निम्नतम तक सूचीबद्ध करती है।![]() |
Python Operators Precedence |
0 Comments:
Post a Comment