from time import sleep loadingdelay = 0.1 ('|', '/', '-', '\\') ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█', '▇', '▆', '▅', '▄', '▃', '▁') ('▉', '▊', '▋', '▌', '▍', '▎', '▏', '▎', '▍', '▌', '▋', '▊', '▉') ('┤', '┘', '┴', '└', '├', '┌', '┬', '┐') ('←', '↖', '↑', '↗', '→', '↘', '↓', '↙') ('⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷') ('⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈') ('◡', '⊙', '◠') ('◢', '◣', '◤', '◥') ('◰', '◳', '◲', '◱') ('◴', '◷', '◶', '◵') ('◐', '◓', '◑', '◒') ('◡◡', '⊙⊙', '◠◠') ('♚ 🔫', '♚ -🔫', '♚ - 🔫', '♚- 🔫', '☠ 🔫') animation = ('←', '↖', '↑', '↗', '→', '↘', '↓', '↙') def animate(): while True: for frame in animation: print('\rloading ' + frame, end = '') sleep(loadingdelay) animate()