Errors type | Sololearn: Learn to code for FREE!

+1

Errors type

What is syntaxError and typeError?

11/18/2018 8:20:30 AM

Rex Hung

3 Answers

New Answer

+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