DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to do a square root in python
a
=
int
(
input
(
"enter a real number: "
)
)
sqrt
=
a
**
(
1
/
2
)
print
(
"the square root of "
,
a
,
"is"
,
sqrt
)
PREVIOUS
NEXT
Tagged:
#square
#root
#python
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit