Other Python Commands to Check Out
Clear Screen
os.system('clear')
Leave System:
sys.exit(print("Good bye"))
os.system('clear')
Leave System:
sys.exit(print("Good bye"))
Delay time between print lines or after input
import time
import sys
#------Reg Speed
print("Welcome to my World")
print("That was fast")
time.sleep(5 )
print("\nThat was a nice delay in play! ")
time.sleep(1)
print("\nDon't you think?")
import time
import sys
#------Reg Speed
print("Welcome to my World")
print("That was fast")
time.sleep(5 )
print("\nThat was a nice delay in play! ")
time.sleep(1)
print("\nDon't you think?")
Pop command
set_list = {"a", "b", "c", "d"}
print(set_list)
x = set_list.pop()
print(set_list)
print(x)
set_list = {"a", "b", "c", "d"}
print(set_list)
x = set_list.pop()
print(set_list)
print(x)
Color
In top section:
import colorama
from colorama import Fore, Back, Style
#intro
print ('\nPlain!')
print(Style.BRIGHT)
print ('\nCheck This Out!')
print (Fore.RED + '\nI am so Envious')
place = input (Fore.MAGENTA + '\nEnter something that is pink:')
jail = input (Back.WHITE + Fore.BLACK +'\nTell me something that is black and white:')
print(Style.RESET_ALL)
In top section:
import colorama
from colorama import Fore, Back, Style
#intro
print ('\nPlain!')
print(Style.BRIGHT)
print ('\nCheck This Out!')
print (Fore.RED + '\nI am so Envious')
place = input (Fore.MAGENTA + '\nEnter something that is pink:')
jail = input (Back.WHITE + Fore.BLACK +'\nTell me something that is black and white:')
print(Style.RESET_ALL)