%s and %d are used for string formatting where %s and %d holds place for a string and a number respectively, and their associated values are passed using a tuple with % operator.
Input:
name = 'Cody'
age = 22
print ('%s %d' % (name, age))
Output:
Cody 22