Answers for "python force variable type"

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...)
Posted by: Guest on May-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language