from time import sleep
import sys
string = "The Battle Cats For Life" # Whatever string you want
for letter in string:
sleep(0.01) # In seconds
sys.stdout.write(letter)
sys.stdout.flush()
# variable : type = value
a : int = 1
def f(x : int | float ) -> None:
print(x+1)
import sys,time
def type(text):
for char in text:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(0.1)
#use it
type("Hello world")
from collections.abc import Iterable
def zero_all_vars(vars: Iterable[LoggedVar[int]]) -> None:
for var in vars:
var.set(0)