Python Basics
Interactive Python -> REPL:
|--->>> Read
| Evaluate
| Print
|--------- Loop
|--->>> Read
| Evaluate
|--------- Loop
- _ :works with REPL only
Shift from Python Interactive Mode to Regular Shell Mode:
- for windows: Ctrl + Z, Enter
- for MacOS/Linux: Ctrl + D
- Recover from unix like system: fg
Clear terminal / console: use commented line for mac os and disable the other line
import os
clear = lambda: os.system("cls") # for windows only
# clear = lambda: os.system("cls") # for macos/linux only
clear() # call this method To Clear Screen