|
9 | 9 | print('Division: ', 7 / 2) |
10 | 10 | print('Division without the remainder: ', 7 // 2) # gives without the floating number or without the remaining |
11 | 11 | print('Modulus: ', 3 % 2) # Gives the remainder |
12 | | -print ('Division without the remainder: ',7 // 3) |
| 12 | +print ('Division without the remainder: ', 7 // 3) |
13 | 13 | print('Exponential: ', 3 ** 2) # it means 3 * 3 |
14 | 14 |
|
15 | 15 | # Floating numbers |
16 | 16 | print('Floating Number,PI', 3.14) |
17 | 17 | print('Floating Number, gravity', 9.81) |
18 | 18 |
|
19 | 19 | # Complex numbers |
20 | | -print('Complex number: ', 1+1j) |
21 | | -print('Multiplying complex number: ',(1+1j) * (1-1j)) |
| 20 | +print('Complex number: ', 1 + 1j) |
| 21 | +print('Multiplying complex number: ',(1 + 1j) * (1-1j)) |
22 | 22 |
|
23 | 23 | # Declaring the variable at the top first |
24 | 24 |
|
|
109 | 109 | print('B in Asabeneh', 'B' in 'Asabeneh') # False -there is no uppercase B |
110 | 110 | print('coding' in 'coding for all') # True - because coding for all has the word coding |
111 | 111 | print('a in an:', 'a' in 'an') # True |
112 | | -print('4 is 2 ** 2:', 4 is 2 **2) # True |
| 112 | +print('4 is 2 ** 2:', 4 is 2 ** 2) # True |
113 | 113 |
|
114 | 114 | print(3 > 2 and 4 > 3) # True - because both statements are true |
115 | 115 | print(3 > 2 and 4 < 3) # False - because the second statement is false |
|
0 commit comments