×
Menu
Index

5.3 TypeError: Can’t convert ‘int; object to str implicitly

A type error can occur if the type of an object is not what the Python interpreter expected to see for example if you try to concatenate (link) a non-string value to a string value.
 
Code
Error Message
Solution
 
The int variable ‘number’ must be explicitly converted to a string before it can be concatenated to the string ‘room_name’.