Skip to content

Commit 545292e

Browse files
committed
Add division and complex
1 parent 53485ff commit 545292e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

informal/numbers/complex.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
c = 3 + 4j
2+
print(c)
3+
print(type(c))
4+
print(1/c)

informal/numbers/division.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
print('8 / 2 =', 8 / 2)
2+
print('8 // 2 =', 8 // 2)
3+
4+
print('- 7 / 3 =', - 7 / 3)
5+
print('- 7 // 3 =', - 7 // 3)
6+
7+
print('(-7) / 3 =', (-7) / 3)
8+
print('(-7) // 3 =', (-7) // 3)
9+
10+
print('- (7 / 3) =', - (7 / 3))
11+
print('- (7 // 3) =', - (7 // 3))
12+
13+
print('- 7 / (-3) =', - 7 / (-3))
14+
print('- 7 // (-3) =', -7 // (-3))
15+

0 commit comments

Comments
 (0)