We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5d5080 commit 11cadefCopy full SHA for 11cadef
square_root.py
@@ -0,0 +1,9 @@
1
+import math
2
+
3
+def square_root(number):
4
+ if number >=0:
5
+ print(f"Square root {math.sqrt(number)}")
6
+ else:
7
+ print("Cannot find square root for the negative numbers..")
8
+while True:
9
+ square_root(int(input("enter any number")))
0 commit comments