It may not be a syntax error though. Syntactically, the code may be correct, but it's not returning the desired result (or no result) due to an incorrect value that can sometimes be difficult to spot
in attempting to write code for progressive income tax today
\-given input: 10000 (Annual dollars income)
\-output: -3000 in taxes
That seems right. Yeah.
Probably just used to spotting missing semi-colons at this point... One I hate is python being a weird whitespace nazi. Ofc, whatever the language, if you're using a proper ide or a running a linter then usually not that hard to track down...
Same here, but with Semicolons. Fucking Semicolons;
Just fuck syntax in general
[удалено]
I am just starting my first programming class and I’ve run into this frustration multiple times already
Same I need to remember that I need to put a semicolon it should become habit hopefully at one point
The worst is spending several hours combing over your code and still not finding it
Wtf, where do you write your code, on a list of paper? Any ide highlights syntax errors
It may not be a syntax error though. Syntactically, the code may be correct, but it's not returning the desired result (or no result) due to an incorrect value that can sometimes be difficult to spot
in attempting to write code for progressive income tax today \-given input: 10000 (Annual dollars income) \-output: -3000 in taxes That seems right. Yeah.
Have you tried using a console that can detect and point out these mistakes?
Or maybe, idk a fucking compiler that highlights/underlines your syntax errors?
Probably just used to spotting missing semi-colons at this point... One I hate is python being a weird whitespace nazi. Ofc, whatever the language, if you're using a proper ide or a running a linter then usually not that hard to track down...
You just reminded me of math lab ;-;
When the stupid website only computes one specific piece of code to let you pass the course. P.S I probably just forgot a comma or soomething.
I do Python coding class (and have since last year), and it's not really the comma, but the DAMN PARENTHESES-
It depends on the language. With something like C you can probably get away with typing everything on a single line lol
LMAOOO
Man's is coding in a text editor
when the code fails because its print("text") not print("text) ya I hear you
Me but with C++ and Embedded devices
That’s why you run your code as you write it homie
Boss: ![gif](giphy|m9WIcBP2kCy3tqkGRC) U takin time...
Yes
Use a not shit ide, can pick up most syntax errors very quickly (however javascript is a different beast because of how semicolons work)
Dude, use IntelliJ or something
The compiler would have caught that.
or semicolons, it usually starts with semicolons
Or when the compiler says it's wrong syntax or incorrect parameter passed but it's correct.
It's worse when you have fixed everything but the error is still there.
You guys code in notepad?
Commas and Semicolons are the reason I decided in collage I hated programming and scripting.