Hi, i'm a programming student and my teacher is starting with C to teach us the programming paradigms, he said it's ok if i deliver my homework in python(it's easier and faster for the homeworks). And i would like to have my code to be as close as posible as in plain C. Question is How do i declare data types for variables in python like you do in C. ex:
int X,Y,Z;
I know i can do this in python
x = 0
y = 0
z = 0
But that seems a lot of work and it misses the point of python being easier/faster than C. So, whats the shorttest way to do this? P.S. i know you dont have to declare the data type in python most of the time, but still i would like to do it so my code looks as much possible like classmates'.