This Website for Those Students who are searching for a platform to study online in their own Language Hindi, on this website they will learn all courses like IAS, programming, web designing, data science, and competitive exam preparation, etc.


Introduction to Python Numbers


Introduction to Python Numbers


Objective Of Today:

  1. Introduction to Python Numbers
  2. Integer

  3. Floating Point
  4. Complex


Introduction to Python Numbers



Integer और floating point numbers में operation का order लगभग समान रहता है। सबसे पहले multiplication और division perform किया जाता है, इसके बाद addition और subtraction perform किया जाता है।

Python 3 numerical types को support करती है।



  • Integer
  • Floating Point
  • Complex

Integer

Python में integer numbers int class से सम्बंधित होते है। Integer numbers पूर्ण numbers होते है। इनमें दशमलव नहीं होता है। एक integer negative, positive या zero हो सकता है। उदाहरण के लिए निचे दिए गए numbers को देखिये ये सभी integers है।

7, 0, -2, 9, -55 जब एक integer negative होता है तो वह signed integer कहलाता है।


Floating Numbers

Python में floating point numbers float class से सम्बंधित होते है। Floating point numbers ऐसे numbers होते है जिनमें दशमलव और उसके बाद कुछ सँख्या होती है।

Floating point numbers negative या positive हो सकते है।

उदाहरण के लिए निचे दिए गए numbers को देखिये।

4, 5.9, -2.2 ऊपर दिए गए numbers में 4 एक integer है और 5.9 एक floating point number है।

Floating point numbers को 10 की power दर्शाने के लिए e के साथ एक scientific number के रूप में भी use किया जाता है।

Floating point numbers के सम्बन्ध में एक बात आपको हमेशा यह ध्यान रखनी चाहिए की floating point numbers पर किये गए operations का result भी एक floating point number ही होता है।

उदाहरण के लिए यदि आप 2 और 2.0 को add कर रहे है तो इनका result 4.0 होगा।


Complex Numbers

Python में complex numbers complex class से सम्बंधित होते है। Complex numbers के real और imaginary दो parts होते है।

एक complex number a+bi की form में represent किया जाता है। इसमें a और b real numbers (floats) होते है और i एक imaginary number होता है।

Python में कुछ तकनीकी कारणों की वजह से imaginary number को j के द्वारा represent किया जाता है।

Previous
Next Post »

Quote

"Educationists should build the capacities of the spirit of inquiry, creativity, entrepreneurial and moral leadership among students and become their role model."

Dr. Abdual Kalam