funtion type in typing python code example
Example 1: python typing effect
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()
Example 2: python typing void function
def function(param: str) -> None:
# A function that doesn't return anything,
# has None as return type.
print("hey")