PyCharm Edu introduction course, string multiplication
<p>I'm new to Python and currently running the "Introduction to Python" course for PyCharm Edu. I'm having a problem with the following task (strings -> string multiplication)</p>

<blockquote>
  <p>Python supports a string-by-number multiplication (but not the other
  way around!). </p>
  
  <p>Use hello to get the
  "hellohellohellohellohellohellohellohellohellohello" string ("hello"
  repeated 10 times).</p>
</blockquote>

<p>The default given code is </p>

<pre><code>hello = "hello"
ten_of_hellos = hello operator 10
print(ten_of_hellos)
</code></pre>

<p>so I just replace the word operator with the * sign, so I have</p>

<pre><code>hello = "hello"
ten_of_hellos = hello * 10
print(ten_of_hellos)
</code></pre>

<p>but I get an error saying "use multiplication". Any idea of what I'm doing wrong?</p>

<p>If anyone else is completing the PyCharm Edu tutorial I noticed a problem with the string_multiplication exercise. When attempting to complete the solution an error messsage "Use multiplication" occurs. This is due to the source code of the PyCharm project. For anyone interested the solution is to go into you file system directory where the program is located:</p>

<p><a href="http://i.stack.imgur.com/IVss0.png" rel="nofollow"><img src="http://i.stack.imgur.com/IVss0.png" alt="enter image description here"></a></p>

<p>Open the .py file and insert the missing "else" (highlighted in gray):
<a href="http://i.stack.imgur.com/3ynHI.png" rel="nofollow"><img src="http://i.stack.imgur.com/3ynHI.png" alt="enter image description here"></a></p>

<p>Click the Check Task button in PyCharm Edu to see the solution is complete.</p>

<p>This was a solution found by GitHub user lbilger. <a href="https://github.com/JetBrains/pycharm-courses/pull/11/commits/32b4d3e9adc32e7b9c6a293e4c6e2bcc29b35210" rel="nofollow" title="Solution">Source</a></p>

python pycharm