Python tutorial - String Multiplication
Answered
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
print(ten_of_hellos)
The output does show ten hellos strung together:
hellohellohellohellohellohellohellohellohellohello
Is this a bug in the tutorial? I am using PyCharm.edu 3.0 on macOS Sierra
Please sign in to leave a comment.
Hello Michael, thanks for the report.
Yes, it's already known issue https://youtrack.jetbrains.com/issue/EDU-757, please check the workaround: https://youtrack.jetbrains.com/issue/EDU-757#comment=27-1580903.