Single versus double quotes for variables

What if we used double quotes for the string for name, instead of single quotes? What is the output of the Python code below?

1
2
3
4
5
6
name = "Aditya"
score = 98

message = "Hi %s. You achieved a score of %d in the class." % (name, score)

print message

×

Problem Loading...

Note Loading...

Set Loading...