+ 21
x = 9
result = x**.5
print(f'the square root of {x} is {result}.')
+ 11
Jan Markus
"😳 What's wrong in my code? Why..."
The downvoter was probably someone who wasn't familiar with math...
+ 10
😳 What's wrong in my code? Why did I get one downvote? 😳
+ 6
You can use math.sqrt()
+ 4
Jan Markus true. It's always better for them to learn some mathematics before they start coding.
+ 3
Sonic Don't say maths I am stuck on Laplace Transform and Inverse Laplace Transform chapter Today just taken break Lol 😥
+ 3
Sayyam Jain It's "Laplace" not "Laplas"
+ 2
Ore ooooffff 😥 I have gone mad due to maths problems today lol Thanks for the Correction :)
+ 2
Sayyam Jain I can feel it. I am a 300 level mathematics student. 😂
+ 2
Sayyam Jain the LaPlace transform is not required to learn programming but it would be good to know your indices and roots.
+ 1
The best n easy way is to do that -
a = int(input())
print(a**0.5)



