mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 10:22:16 +00:00
fix(curriculum): remove mentions of bin, oct, hex functions from review pages (#67106)
This commit is contained in:
@@ -478,30 +478,6 @@ num = -13
|
||||
print(abs(num)) # 13
|
||||
```
|
||||
|
||||
- **`bin()` Function**: This is used to convert an integer to its binary representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(bin(num)) # 0b111000
|
||||
```
|
||||
|
||||
- **`oct()` Function**: This is used to convert an integer to its octal representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(oct(num)) # 0o70
|
||||
```
|
||||
|
||||
- **`hex()` Function**: This is used to convert an integer to its hexadecimal representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(hex(num)) # 0x38
|
||||
```
|
||||
|
||||
- **`pow()` Function**: This is used to raise a number to the power of another:
|
||||
|
||||
```py
|
||||
|
||||
@@ -478,30 +478,6 @@ num = -13
|
||||
print(abs(num)) # 13
|
||||
```
|
||||
|
||||
- **`bin()` Function**: This is used to convert an integer to its binary representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(bin(num)) # 0b111000
|
||||
```
|
||||
|
||||
- **`oct()` Function**: This is used to convert an integer to its octal representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(oct(num)) # 0o70
|
||||
```
|
||||
|
||||
- **`hex()` Function**: This is used to convert an integer to its hexadecimal representation as a string:
|
||||
|
||||
```py
|
||||
num = 56
|
||||
|
||||
print(hex(num)) # 0x38
|
||||
```
|
||||
|
||||
- **`pow()` Function**: This is used to raise a number to the power of another:
|
||||
|
||||
```py
|
||||
|
||||
Reference in New Issue
Block a user