+ 21
x = 9 result = x**.5 print(f'the square root of {x} is {result}.')
19th Dec 2020, 5:42 PM
Jan Markus
+ 11
Jan Markus "😳 What's wrong in my code? Why..." The downvoter was probably someone who wasn't familiar with math...
19th Dec 2020, 7:17 PM
Crash
Crash - avatar
+ 10
😳 What's wrong in my code? Why did I get one downvote? 😳
19th Dec 2020, 6:59 PM
Jan Markus
+ 7
Sonic I didn't want to overload someone at the beginning of his mathematician career with the use of Python modules, so I presented the most simple solution.
21st Dec 2020, 10:42 AM
Jan Markus
+ 6
You can use math.sqrt()
21st Dec 2020, 9:16 AM
Sonic
Sonic - avatar
+ 4
Jan Markus true. It's always better for them to learn some mathematics before they start coding.
21st Dec 2020, 10:44 AM
Sonic
Sonic - avatar
+ 3
Sonic Don't say maths I am stuck on Laplace Transform and Inverse Laplace Transform chapter Today just taken break Lol 😥
21st Dec 2020, 11:32 AM
Sayyam Jain
Sayyam Jain - avatar
+ 3
Sayyam Jain It's "Laplace" not "Laplas"
21st Dec 2020, 1:11 PM
Ore
Ore - avatar
+ 2
Ore ooooffff 😥 I have gone mad due to maths problems today lol Thanks for the Correction :)
21st Dec 2020, 4:52 PM
Sayyam Jain
Sayyam Jain - avatar
+ 2
Sayyam Jain I can feel it. I am a 300 level mathematics student. 😂
21st Dec 2020, 6:16 PM
Ore
Ore - avatar
+ 2
Sayyam Jain the LaPlace transform is not required to learn programming but it would be good to know your indices and roots.
21st Dec 2020, 8:45 PM
Sonic
Sonic - avatar
+ 1
The best n easy way is to do that - a = int(input()) print(a**0.5)
21st Dec 2020, 4:04 PM
Surkhab Khan
Surkhab Khan - avatar