Python Type error problem solution for beginners 😉 #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

"Have an error with types? Just use the correct ones"

was
Автор

This is just string combination, I’d rather type the data on output in the print statement rather than rewriting the whole values data type, in python you have the flexibility to do that. That way the 5 stays an int until it needs to be displayed AS a string, much more flexible that way and doesn’t require all string variables in all print statements. But hey, that’s just my 5 cents

ShaggyGray-gcwd
Автор

Don't listen to him. He obviously doesn't know what type errors actually are and what type systems are.

mrbaemanlolman
welcome to shbcf.ru