This media is not supported in your browser
VIEW IN TELEGRAM
Junior dev : Let Me Optimize The Code
https://programmerjokesshorts.openinapp.co/programmerjokes-shorts
https://programmerjokesshorts.openinapp.co/programmerjokes-shorts
😁7🔥1
Output:
An error is shown.
Explanation : As you can see the variable ‘b’ is of type integer and the variable ‘a’ is of type string. Also as Python is a strongly typed language we cannot simply concatenate an integer with a string. We have to first convert the integer variable to the type string to concatenate it with a string variable. So, trying to concatenate an integer variable to a string variable, an exception of type “TypeError” is occurred.
An error is shown.
Explanation : As you can see the variable ‘b’ is of type integer and the variable ‘a’ is of type string. Also as Python is a strongly typed language we cannot simply concatenate an integer with a string. We have to first convert the integer variable to the type string to concatenate it with a string variable. So, trying to concatenate an integer variable to a string variable, an exception of type “TypeError” is occurred.
This media is not supported in your browser
VIEW IN TELEGRAM
He Take This Too Seriously 😅😂
https://programmerjokesshorts.openinapp.co/programmerjokes-shorts
https://programmerjokesshorts.openinapp.co/programmerjokes-shorts
😁5