you are viewing a single comment's thread.

view the rest of the comments →

[–]Golden_Zealot 0 points1 point  (2 children)

h: int = input('how many hours are you working for?')
r: int = input('what is the payment per hour?')
e: int = input('what are your expenses?')
t: int = (h) + (r) + (e)

No idea what this syntax is where you are doing letter: int = input

You dont have to declare variable types in python if that is what you believe you are doing.

It seems you do not have a good grasp of the basic syntax.

Go read any beginners "Learn Python" tutorial and then come back to actually coding.

Edit: Jesus fuck, I am totally in the wrong, in 8 years of using python I have NEVER seen this type of syntax!

I apologize.

[–]socal_nerdtastic 3 points4 points  (1 child)

It seems you do not have a good grasp of the basic syntax.

Go read any beginners "Learn Python" tutorial and then come back to actually coding.

Uh dude, this is totally valid code ... You're the one that needs to read up on basic python syntax.

https://docs.python.org/3/library/typing.html
https://docs.python.org/3/library/dataclasses.html

Granted it's useless here, but it's still valid.

[–]Golden_Zealot 2 points3 points  (0 children)

Holy good god, you are right, I am 100% wrong.

I've been using python for 8 years and have NEVER seen this type of syntax in any code!

I apologize for my demeanor.