Printing multiple variables

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

message = "Hi %s. You achieved a score of %d." % [---]

print message

What do you use to replace [---] so that the output is:

1
Hi Aditya. You achieved a score of 98.

[name, score] name, score "name, score" (name, score)

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...