Answer to Question #253154 in Python for Ali

Question #253154

You've learned in the past lessons on how to use square root functions, right? Then let's take your knowledge to the test. Print out the square root of a given integer with only two decimal places.


Ready, solve, and go!


Input

A line containing an integer.


4

Output

A line containing a decimal with two decimal places.


2.00


NOTE: There are several test cases resulting in different values.


1
Expert's answer
2021-10-18T12:31:11-0400
from math import sqrt


n = int(input())
n = round(sqrt(n), 2)
print('%.2f' % n)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS