From 52de0fa0deb344ef5f8e143658f96bfe34899623 Mon Sep 17 00:00:00 2001 From: Spoorthi VS Date: Tue, 20 Feb 2024 14:17:58 +0530 Subject: [PATCH 1/2] first commit --- new | 10 ++++++++++ new.py | 0 2 files changed, 10 insertions(+) create mode 100644 new create mode 100644 new.py diff --git a/new b/new new file mode 100644 index 0000000..dcb8251 --- /dev/null +++ b/new @@ -0,0 +1,10 @@ +# Python Program to calculate the square root + +# Note: change this value for a different result +num = 8 + +# To take the input from the user +#num = float(input('Enter a number: ')) + +num_sqrt = num ** 0.5 +print('The square root of %0.3f is %0.3f'%(num ,num_sqrt)) diff --git a/new.py b/new.py new file mode 100644 index 0000000..e69de29 From bd024459a42c1b6c8f04a285763f6933331099ae Mon Sep 17 00:00:00 2001 From: Spoorthi VS <156779011+spoorthi182005@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:23:33 +0530 Subject: [PATCH 2/2] Update new --- new | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/new b/new index dcb8251..bcfbaf7 100644 --- a/new +++ b/new @@ -1,10 +1,11 @@ # Python Program to calculate the square root # Note: change this value for a different result -num = 8 +num = 10 # To take the input from the user #num = float(input('Enter a number: ')) num_sqrt = num ** 0.5 print('The square root of %0.3f is %0.3f'%(num ,num_sqrt)) +