Python strings


#1

What should be the output of this code and why?

Code:

print(3 * ‘7’)


#2

In that context, * is a repeat operator, so the output will be,

777

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.