mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
correct some mistakes
This commit is contained in:
parent
8ed841e750
commit
cade9a1f68
@ -75,7 +75,7 @@ print('Division: ', 7 / 2) # 3.5
|
||||
print('Division without the remainder: ', 7 // 2) # 3, gives without the floating number or without the remaining
|
||||
print ('Division without the remainder: ',7 // 3) # 2
|
||||
print('Modulus: ', 3 % 2) # 1, Gives the remainder
|
||||
print('Exponentiation: ', 2 ** 3) # 9 it means 2 * 2 * 2
|
||||
print('Exponentiation: ', 2 ** 3) # 8 it means 2 * 2 * 2
|
||||
```
|
||||
|
||||
**Example:Floats**
|
||||
|
||||
@ -10,7 +10,7 @@ print('Division: ', 7 / 2)
|
||||
print('Division without the remainder: ', 7 // 2) # gives without the floating number or without the remaining
|
||||
print('Modulus: ', 3 % 2) # Gives the remainder
|
||||
print ('Division without the remainder: ', 7 // 3)
|
||||
print('Exponential: ', 3 ** 2) # it means 3 * 3
|
||||
print('Exponential: ', 2 ** 3) # 8 it means 2 * 2 * 2
|
||||
|
||||
# Floating numbers
|
||||
print('Floating Number,PI', 3.14)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user