+ 1
Errors type
What is syntaxError and typeError?
3 ответов
+ 6
syntax error is caused by not following the proper structure or syntax of the language. e.g. forgetting a semicolon at the of a statement in java, improper indentation in python.
type error happens when you pass a variable or object to a function or operation it has no business with. e.g. passing a string to a function when int is needed
+ 1
Thanks
0
Syntax error, something is wrong in code
TypeError, it seems you're using wrong variable type