Skip to content
Home » ValueError: unsupported format character while forming strings

ValueError: unsupported format character while forming strings

To solve ValueError: unsupported format character while forming strings error follow below methods.

ERROR LOG

ValueError: unsupported format character 'W' (0x57) at index 

How to solve ValueError: unsupported format character while forming strings ?

Refer the given methods to solve the issue.

Method 1:

Try using the format() method to perform such operations.

print("Hello%20World{0}".format(value))

Method 2 :

If you want to print the following output "90% marks": the use:

python 3.8: print("90% marks")
python 3.7 and less: print("90%% marks")

Hope the above solution works.

Also read : OSError: [Error 1] Operation not permitted

Tags: