In
This is a nice way to swap variables without using a third variable.
#python #swap #swap_variables
python
in order to swap variables you can use unpack feature:>>> a, b = 1, 2
>>> a, b = b, a
>>> a, b
(2, 1)
This is a nice way to swap variables without using a third variable.
#python #swap #swap_variables
Create a linux SWAP file:
https://linuxize.com/post/create-a-linux-swap-file/
#linux #swap #swapfile #swappiness #swapon #mkswap
https://linuxize.com/post/create-a-linux-swap-file/
#linux #swap #swapfile #swappiness #swapon #mkswap
Linuxize
Create a Linux Swap File
Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space.