Cool. One thing I would like to point out is that os.system('clear') doesn't work on all devices. To solve this, you can import the clear function from my package like so:
os.system('clear')
from dill_tils.text import clear clear() # This clears the screen!
Or, just steal the function from my GitHub repo if you don't want to install packages. github.com/DillonB07/Dill_tils/blo...
This just changes the command to clear or cls depending on the OS that's being used to run the program.
clear
cls
Oh yeah thanks for that! I’ll implement it later!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cool. One thing I would like to point out is that
os.system('clear')doesn't work on all devices. To solve this, you can import the clear function from my package like so:Or, just steal the function from my GitHub repo if you don't want to install packages.
github.com/DillonB07/Dill_tils/blo...
This just changes the command to
clearorclsdepending on the OS that's being used to run the program.Oh yeah thanks for that! I’ll implement it later!