6. Format root
Describes
obtaining a user input of an integer, a calculation of the square root of 3 digits after the decimal point, and prints.
30 using the output character width, the output right-justified, the extra character is a plus sign (+) is filled.
If the result is more than 30 characters, it is subject to the result width.
Example O
a = int(input())
result = pow(a, 0.5)
print("{:+>30.3f}".format(result))
9999999
++++++++++++++++++++++3162.278
note
Study title source for Python123 platform and Chinese University of MOCC "Python Programming Language" course, Speaker Teacher: Song days, Huang Tianyu, Yan ceremony. If infringement, stand deleted.