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