Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError

//Occurs when trying to use a value in an invalid way.

1();

/*The numeric value 1 is not a function, so trying to use it as one 
results in TypeError: 1 is not a function.*/
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #TypeError
ADD COMMENT
Topic
Name
2+7 =