Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 52df684

Browse files
Update sr for real and complex.py
CODEZILA | codePy
1 parent 29bf89a commit 52df684

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎Basic/sr for real and complex.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# * Written By Codezila.org at 20-03-2020 1:26AM (IST)
12
# Find square root of real or complex numbers
23
# Importing the complex math module
34
import cmath
@@ -8,4 +9,5 @@
89
#num = eval(input('Enter a number: '))
910

1011
num_sqrt = cmath.sqrt(num)
11-
print('The square root of {0} is {1:0.3f}+{2:0.3f}j'.format(num ,num_sqrt.real,num_sqrt.imag))
12+
print('The square root of {0} is {1:0.3f}+{2:0.3f}j'.format(num ,num_sqrt.real,num_sqrt.imag))
13+
print('\n\tCode By codezila.org :)\n\tJoin Us On : <github.com/codezila-org>\n\tFor More Mail Us : <contact@codezila.org>')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /