#Shorts Python Tip #2
Chandrashekar Babu
In python, it is a common practice to use math.sqrt() function to find the square root of a number. It resembles the pattern found in other languages (like in Java: Math.sqrt(), or in C, where you include math.h header file and use sqrtl() function).
But as the power-of operator ( ** ) is a standard python feature, you could apply the law of indices and use the same to get the square root or even the cube root of a number. In this video, I demonstrate the same. ... https://www.youtube.com/watch?v=PkMmF94_Mso
2023-03-16
0.0 LBC
Copyrighted (contact publisher)
1392038 Bytes