{"id":3938,"date":"2022-12-05T08:42:59","date_gmt":"2022-12-05T08:42:59","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=3938"},"modified":"2022-12-05T08:43:00","modified_gmt":"2022-12-05T08:43:00","slug":"python-math-pow","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/python-math-pow\/","title":{"rendered":"Python Math Pow Method"},"content":{"rendered":"<p>Now, we are going to learn about the Python Math Pow Method. The pow method takes in two numbers as arguments, for example, x and y, and the pow method returns the result of x to the power of y. Let\u2019s have a look at a simple example, with which, we can simply understand about pow method.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3939 size-full\" src=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/11\/THE-pow-METHOD.jpg\" alt=\"\" width=\"652\" height=\"66\" srcset=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/11\/THE-pow-METHOD.jpg 652w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/11\/THE-pow-METHOD-300x30.jpg 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/p>\n<h2 style=\"text-align: center;\">Python Math Pow<\/h2>\n<p>As you can see in the above program, we have imported the math module, and then we are calling the pow method, and we are passing two arguments as 2, and 3. The thing is that as a return value, we get the value of 2 to power 3.<\/p>\n<p>So, you can see, to calculate the result of some number to the power of another number, we can simply make use of the pow method from the math module, as and when required, in our programs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now, we are going to learn about the Python Math Pow Method. The pow method takes in two numbers as arguments, for example, x and y, and the pow method returns the result of x to the power of y. Let\u2019s have a look at a simple example, with which, we can simply understand about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[26,27],"class_list":{"0":"post-3938","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-python-tutorial","7":"tag-python","8":"tag-python-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/3938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=3938"}],"version-history":[{"count":2,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/3938\/revisions"}],"predecessor-version":[{"id":4254,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/3938\/revisions\/4254"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=3938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=3938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=3938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}