python square root without math

Python has an exponentiation operator (**) which can be used to calculate the power of a number. x**y returns x raised to y i.e. y times multiplication of x. Since we need to calculate square root, y should be (1/2)

[Total: 1    Average: 5/5]
Leave a Reply

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages