Python tutorial - String Multiplication


Working through the Python tutorial in PyCharm and when I have the following code and check the task it says "use multiplication".

hello = "hello"
ten_of_hellos = hello * 10

The output does show ten hellos strung together:


Is this a bug in the tutorial? I am using 3.0 on macOS Sierra
1 comment
Comment actions Permalink
Official comment

Hello Michael, thanks for the report.

Yes, it's already known issue, please check the workaround:

Please sign in to leave a comment.