Exercises 2223
Here are some exercises that I recommend to do.
2023-05-04 [solution]
is_valid_hash(hash:str, difficulty:int) -> bool
is_prime(n:int) -> bool
int2base(n:int, base:int) -> str
base2int(n:str, base:int) -> int
- Generator:
- $\mathbb{N}$
- $2\mathbb{N}$
- $2\mathbb{N} + 1$
- $\mathbb{P}$
- function with
args
&kwargs
len_in_bits(n:int) -> int
2023-05-11 [solution]
lambda
function@
decorators- bits
- size
&
and|
or^
xor~
neg>>
right shift (//2
)<<
left shift (*2
)
float
ing point numberencrypt
with translation and permutationrsa
encryptionbcbcpy.crypto
is
vs==
2023-05-15 [tuto]
- Authentication
overflow
&underflow
OOP
- Encapsulation
@property
&@---.setter
- Inheritance
super
- Single level
- Abstraction
2023-05-25
OOP
@...method
- Inheritance
- Type
- Hierarchical
- Multilevel
- Hybrid
- Type
- Linked List
- Block
2023-06-01
- Recap
- Blockchain
2023-06-08
- Python module implementation
- Shell
- Git
Written on May 16, 2023