• Register
0 votes

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


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:


by (36.1k points)  
edited by