As far as I know, now we can declare variables using type annotation syntax in Python 3.6 as following code.
def printInt():
a: int = 0
b: int = 1
c: int = 2
print(a, b, c)
What I want to do is declaring variables a, b, c in one line.
I tried a, b, c: int, but it returns error.
Also a: int=0, b: int=1, c: int=2 returns error too.
Is there any way to declare multiple variables using type annotation syntax in one line?
a, b cyou have to assign them asa,b,c=0,1,2