+ 3

Help me. How to use input() for this code.

https://code.sololearn.com/c0BhGO1QVgjX/?ref=app

7th Dec 2020, 8:28 AM
Sooraj K Sunu
Sooraj K Sunu - avatar
6 Réponses
+ 6
import math print(math.sqrt(int(input())))
7th Dec 2020, 8:32 AM
Yasara hasini
+ 3
import math variable = int(input()) print(math.sqrt(variable)) Review this lesson if you are still confused about the topic. Happy coding. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2426/
7th Dec 2020, 8:31 AM
noteve
noteve - avatar
+ 3
Yes, You are correct.
7th Dec 2020, 8:42 AM
Yasara hasini
+ 2
Yasara hasini. Nice concept, but you forgot to make the input an integer. import math print(math.sqrt(int(input())))
7th Dec 2020, 8:36 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
def square: return x*x print(square(3)) Output:- 9
9th Dec 2020, 4:41 AM
Sayyam Jain
Sayyam Jain - avatar
7th Dec 2020, 11:43 AM
Trick Boy👹👹
Trick Boy👹👹 - avatar