typer nos variables en python code example
Example 1: typage in python
# for a string named str1
str1: str = "this is a string"
#for an int named toto
toto: int
#and it works for every types (str, int, floats, dict...)
Example 2: type de variable python
a=int(5)
b=float(5.6)
c=str("Hello world!")