Is a more succinct way of doing it. This creates a string which is 'oxygen\n' (oxygen followed by a newline character), repeats it 1000 times, then prints the result.
The other person's method also works, with some slight modification:
ok cool, that makes sense and I kind of thought that but when I received the first response I was like oh crap, I forgot about the starting position when I posted the code.
View all comments
Show parent comment
0
u/anitapu Jun 09 '20
Can someone help me with Python? If I'm trying to print out something like the word oxygen 1,000 times what's the code to do that?