To print "BBBBB", you need to multiply the letter variable by 5, which essentially repeats the character it contains.
Out of the provided options, the correct line of code to print "BBBBB" is:
print(letter * 5)
This will output "BBBBB" since letter
contains "B", and multiplying it by 5 repeats "B" five times.
The other options do not print "BBBBB":
print(letter)
will only print "B".print5("letter")
is not a valid function call (it should beprint
).print("letter" * 5)
will print "letter" five times, resulting in "letterletterletterletterletter".
So, the correct answer is:
print(letter * 5)