Похожие чаты

But since a string includes numbers why doesn't it take

int?
Due to conflict of data types?

3 ответов

4 просмотра

yes. u are using the len function. it needs string data type variables as a parameter. others correct me if i'm wrong

n ur code, u can input anything into the variable myName, not necessarily just string. as mentioned earlier, len needs string, so u need to convert it to string data type before u pass it to len

len(your_string) returns an int. You can't use + with different datatypes

Похожие вопросы

Карта сайта