• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
8 views

Problem :

The program supposed to take in two names, and if they are the same length it should check if they are the same word.

But i am getting below error in python

python typeerror: not all arguments converted during string formatting

by (6.9k points)  

1 Answer

0 votes

Solution:

The correct way to use traditional string formatting using the '%' operator is to use a printf-style format string (Python documentation for this here: http://docs.python.org/2/library/string.html#format-string-syntax):

Further Readings:

https://github.com/getpelican/pelican/issues/2489

by (22.5k points)  
edited by
...