There are so many ways to do this:
-  Use %-formatting, you need to pass in a tuple:
 
            Pass it as a tuple: 
             print("Total score for %s is %s" % (name, score))
         print("Total score for %(n)s is %(s)s" % {'n': name, 's': score})
- Use new-style string formatting:
 
           print("Total score for {} is {}".format(name, score))
- Use f-string formatting from Python 3.6:
 
            print(f'Total score for {name} is {score}')
I hope this helps.