What does % do to strings in Python?

It’s the string formatting operator. Read up on string formatting in Python.

format % values

Creates a string where format specifies a format and values are the values to be filled in.

Leave a Comment