Question #604

What is the output of the code snippet below?
print("Py"*2*True)

First, True , as a boolean, evalutes as 1.0. Then, "Py" is multiplied by 2 and 1 resulting in PyPy . (pythoncentral.io/use-python-multiply-strings)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵