<p><code>Hi, Disclaimer: I am new to python and coding in general</code></p>
<p>我正在尝试制作一个简单的应用程序,可以将一个单词打印特定的次数</p>
<p>现在运行我的代码,尽管我最初输入了(次),程序在退出之前只打印(word)一次</p>
<p>这是我的密码:</p>
<pre><code># Double Words
times = input('Ho w many times would you like to repeat your word?')
word = input('Enter your word:')
for times in times:
print(word)
</code></pre>
<pre><code>times = int(input('How many times would you like to repeat your word?'))
word = input('Enter your word:')
for i in range(times):
print(word)
</code></pre>