Multiplying strings

Computer Science Level pending

Great! Now you want to print a dotted line below the message for Aditya, so that you can eventually print messages for several students on the same page, and easily cut along the dotted line to separate the messages. You're just doing your part to save the planet.

You write the following code:

1
2
3
4
5
6
7
8
9
name = "Aditya"
score = 98
liked = True

message = "Hi %s. You achieved a score of %d." % (name, score)
extra = "It's %s that I enjoyed having you as a student." % liked

print message, extra
print [---]

What do you use to replace [---] so that you get a row of 80 - with no spaces in between? Your output should like like this:

1
2
Hi Aditya. You achieved a score of 98. It's True that I enjoyed having you as a student.
--------------------------------------------------------------------------------
×

Problem Loading...

Note Loading...

Set Loading...