Lesson 5 of 34

Operators ने गणित

7 min 20 XP

Python एक शक्तिशाली कॅल्क्युलेटर आहे. / दशांश भागाकार, // पूर्णांक भागाकार, % बाकी, आणि ** घात (power).

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

गणिताप्रमाणेच * आणि / ची आकडेमोड + आणि - च्या आधी होते. Brackets ( ) सर्वात आधी सोडवले जातात.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

संख्या सम आहे का ते पाहण्यासाठी: n % 2 चे मूल्य 0 असेल तर ती सम आहे.

Challenge

+20 XP

length = 12 आणि width = 5 असलेल्या आयताचे क्षेत्रफळ आणि मग परिमिती वेगवेगळ्या ओळींत print करा.

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.