Python Arithmetic Operators || arithmetic operators in python, arithmetic operators in python in hindi
Arithmetic Operators in Python
Arithmetic operators:-
इन ऑपरेटरों का उपयोग सामान्य अंकगणितीय गणनाएं जैसे जोड़, गुणा आदि करने के लिए किया जाता है। अंकगणित ओपेरटर वे चिन्ह हैं जिनका उपयोग गणित और प्रोग्रामिंग में संख्याओं या वेरिएबल्स पर बेसिक गणितीय कार्य करने के लिए किया जाता है। कंप्यूटर प्रोग्रामिंग में, इन ऑपरेटरों का उपयोग संख्यात्मक मानों में बदलाव करने के लिए किया जाता है। ये ऑपरेटर गणितीय गणना करने में मौलिक हैं और पायथन, सी, जावा और अन्य प्रोग्रामिंग भाषाओं में व्यापक रूप से उपयोग किए जाते हैं।
These operators are used to perform common arithmetic calculations like addition, multiplication etc. These operators are used to perform common arithmetic calculations like addition, multiplication etc. Arithmetic operators are symbols or characters used in mathematics and programming to perform basic mathematical operations on numbers or variables. In computer programming, these operators are used to manipulate numeric values. These operators are fundamental in performing mathematical calculations and are widely used in programming languages like Python, C, Java, and more.
- Exponentiation ( ** )
- Multiplication ( * )
- Division ( / )
- Floor (Integer) Division ( // )
- Modulus ( % )
- Addition ( + )
- Subtraction ( - )
Exponentiation (Power) Operator [ ** ]:-
यह ऑपरेटर किसी संख्या का पावर कैलकुलेट करता है। ऑपरेटर के बाएं साइड की वैल्यू आधार तथा राइट साइड की वैल्यू घातांक होती है। पायथन में, एक्सपोनेंट (पावर) ऑपरेटर को दो तारांकन (**) द्वारा दर्शाया जाता है। इसका उपयोग किसी संख्या को एक निश्चित घात (पावर) तक बढ़ाने के लिए किया जाता है। बायां ऑपरेंड आधार (बेस) है, और दायां ऑपरेंड प्रतिपादक (एक्सपोनेंट) है। एक्सपोनेंट (पावर) ऑपरेटर लूप या कस्टम फ़ंक्शंस की आवश्यकता के बिना पायथन में घातांक निकालने का एक सुविधाजनक तरीका है।
This operator calculates the power of a number. The value on the left side of the operator is the base and the value on the right side is the exponent. In Python, the exponentiation operator is represented by two asterisks (**). It is used to raise a number to a certain power. The left operand is the base, and the right operand is the exponent. The exponentiation operator is a convenient way to perform exponentiation in Python without the need for loops or custom functions.
Multiplication [ * ]
यह ऑपरेटर दो संख्याओं का गुणनफल निकालता है। पायथन में गुणन ऑपरेटर को एस्टरिस्क चिह्न (*) द्वारा दर्शाया जाता है। इसका उपयोग दो संख्याओं या मानों को एक साथ गुणा करने के लिए किया जाता है। आप गुणन ऑपरेटर का उपयोग पूर्णांक और फ़्लोटिंग-पॉइंट संख्याओं दोनों के साथ कर सकते हैं, और इसका उपयोग अधिक जटिल अंकगणितीय संचालन या एक्सप्रेशन के भीतर भी किया जा सकता है।
This operator calculates the product of two numbers. The multiplication operator in Python is represented by the asterisk symbol (*). It is used to multiply two numbers or values together. You can use the multiplication operator with both integers and floating-point numbers, and it can also be used for more complex arithmetic operations or within expressions.
Division [ / ]
यह ऑपरेटर भाग करता है तथा भागफल देता है। ऑपरेटर के बाएं साइड की वैल्यू को राइट साइड की वैल्यू से भाग किया जाता है। पायथन में डिवीजन ऑपरेटर को फॉरवर्ड स्लैश ("/") द्वारा दर्शाया जाता है। इसका प्रयोग एक संख्या को दूसरी संख्या से विभाजित करने के लिए किया जाता है। जब आप डिवीज़न ऑपरेटर का उपयोग करते हैं, तो पायथन परिणाम के रूप में एक फ़्लोटिंग-पॉइंट नंबर (दशमलव स्थानों वाली एक संख्या) लौटाता है, भले ही डिवीज़न का परिणाम एक पूर्ण संख्या हो। यदि आप पूर्णांक विभाजन करना चाहते हैं और परिणाम का केवल पूरा भाग प्राप्त करना चाहते हैं, तो आप पायथन में फ़्लोर डिवीजन ऑपरेटर (//) का उपयोग कर सकते हैं।
This operator divides and returns the quotient. The value on the left side of the operator is divided by the value on the right side. The division operator in Python is represented by the forward slash ("/"). It is used to divide one number by another. When you use the division operator, Python returns a floating-point number (a number with decimal places) as the result, even if the division would result in a whole number. If you want to perform integer division and get only the whole part of the result, you can use the floor division operator (//) in Python.
Floor Division [ // ]
यह ऑपरेटर भाग करता है तथा भागफल को किसी इन्टिजर संख्या के लगभग में बदल देता है। ऑपरेटर के बाएं साइड की वैल्यू को राइट साइड की वैल्यू से भाग किया जाता है। पायथन में, फ़्लोर डिवीज़न ऑपरेटर को `//` द्वारा दर्शाया जाता है। इसका उपयोग दो संख्याओं के बीच विभाजन करने के लिए किया जाता है और परिणाम के पूर्णांक भाग को लौटाता है, प्रभावी रूप से भागफल को निकटतम पूर्णांक तक पूर्णांकित करता है। हालाँकि, `//` ऑपरेटर परिणाम का केवल पूर्णांक भाग लौटाता है। यह विशेष रूप से तब उपयोगी होता है जब आप एक संख्या को दूसरी संख्या से समान रूप से विभाजित करने की पूर्ण संख्या प्राप्त करना चाहते हैं।
This operator divides and rounds the quotient to an integer number. The value on the left side of the operator is divided by the value on the right side. In Python, the floor division operator is represented by `//`. It is used to perform division between two numbers and returns the integer part of the result, effectively rounding down the quotient to the nearest integer. However, the `//` operator returns only the integer part of the result. This is particularly useful when you want to obtain the whole number of times one number can be evenly divided by another.
Modulo [ % ]
यह ऑपरेटर भाग करता है तथा शेषफल देता है। ऑपरेटर के बाएं साइड की वैल्यू को राइट साइड की वैल्यू से भाग किया जाता है। पायथन में मॉड्यूलो ऑपरेटर (%) का उपयोग शेषफल ज्ञात करने के लिए किया जाता है जब एक संख्या को दूसरे से विभाजित किया जाता है। यह विभाजन ऑपरेशन करने के बाद शेष को वापस कर देता है। यह ऑपरेटर विभिन्न अनुप्रयोगों में उपयोगी है, जैसे विभाज्यता की जांच करना, मानों की एक श्रृंखला के माध्यम से साइकिल चलाना, या यह सुनिश्चित करना कि कोई मान एक विशिष्ट सीमा के भीतर रहता है। मॉड्यूलो ऑपरेटर कई प्रोग्रामिंग कार्यों में एक मूल्यवान उपकरण है, जिसमें सम/विषम संख्याओं की जांच करना, किसी सरणी में तत्वों के माध्यम से साइकिल चलाना और बहुत कुछ शामिल है।
This operator divides and returns the remainder. The value on the left side of the operator is divided by the value on the right side. The modulo operator (%) in Python is used to find the remainder when one number is divided by another. It returns the remainder after performing the division operation. This operator is useful in various applications, such as checking for divisibility, cycling through a range of values, or ensuring that a value stays within a specific range. The modulo operator is a valuable tool in many programming tasks, including checking even/odd numbers, cycling through elements in an array, and more.
Addition [ + ]
यह ऑपरेटर दो संख्याओं का योग देता है। पायथन में एडिशन ऑपरेटर को प्लस चिह्न (+) द्वारा दर्शाया जाता है। इसका उपयोग दो या दो से अधिक संख्याओं को एक साथ जोड़ने के लिए किया जाता है। आप पूर्णांक और फ़्लोटिंग-पॉइंट संख्याओं दोनों के साथ अंकगणितीय संचालन करने के लिए अतिरिक्त ऑपरेटर का उपयोग कर सकते हैं। इसके अतिरिक्त, आप इसका उपयोग स्ट्रिंग कॉन्सटेनेशन के लिए कर सकते हैं, जिसका अर्थ है दो या दो से अधिक स्ट्रिंग्स को एक साथ जोड़ना।
This operator returns the sum of two numbers. The addition operator in Python is represented by the plus sign (+). It is used to add two or more numbers together. You can use the addition operator to perform arithmetic operations with both integers and floating-point numbers. Additionally, you can use it for string concatenation, which means combining two or more strings together.
Subtraction [ - ]
यह ऑपरेटर दो संख्याओं का अंतर देता है। पायथन में, घटाव ऑपरेटर को हाइफ़न (-) द्वारा दर्शाया जाता है। इसका उपयोग दाहिनी ओर के मान को बायीं ओर के मान से घटाने के लिए किया जाता है।
This operator returns the difference of two numbers. In Python, the subtraction operator is represented by the hyphen (-). It is used to subtract the value on the right-hand side from the value on the left-hand side.

Comments
Post a Comment