Question #921

What is the output of the code snippet below?
print(f'.{"Python".center(10, "_")}.')

The center() method centers and aligns a string, using a specified character (space is default) as the fill character. (w3schools.com/python/ref_string_center.asp)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵