Post History
Python 3, 53 38 bytes def f(x,y): for c in x:print(end=c*y) Try it online! I'm sure someone will find a lambda solution to this. Golfed 15 bytes thanks to @Moshi's advice.
Answer
#2: Post edited
# [Python 3], 53 bytes- <!-- language-all: lang-python -->
- <pre><code>def f(x,y):
	for i in range(len(x)):print(end=x[i]*y)- </code></pre>
[Try it online!][TIO-ktdlphsn]- I'm sure someone will find a `lambda` solution to this.
- [Python 3]: https://docs.python.org/3/
[TIO-ktdlphsn]: https://tio.run/##RYo7DsIwDEBneoook408lM9U1J07IIaWOGApcqKolZLTh89QxvdJdXlFPbXm2BsPhSoO3c7HbMSImjzpkyGwQkEcUhZdgNWN5Sb3fcWWxp/rPNhpflg64CUBfvHKIURL/SZcXOfAlo7/RSydN/qUHtsb "Python 3 – Try It Online"
- # [Python 3], <s>53</s> 38 bytes
- <!-- language-all: lang-python -->
- <pre><code>def f(x,y):
- 	for c in x:print(end=c*y)
- </code></pre>
- [Try it online!][TIO-ktdrgezu]
- I'm sure someone will find a `lambda` solution to this.
- Golfed 15 bytes thanks to [**@Moshi**](https://codegolf.codidact.com/users/53196)'s [advice](https://codegolf.codidact.com/comments/thread/4449#comment-13498).
- [Python 3]: https://docs.python.org/3/
- [TIO-ktdrgezu]: https://tio.run/##RYo5CoAwEABrfUXYKitbeFVKer@hOTAQkiAK5vXxKLScI6Z9Db7LWWnDDD8p4VAWJmxMMuvZOcTN@p1rr4SsEuYoXlEaDvMigRocI8cHJ@1cAKo/ocKxOA3U/osF6j@6S435Ag "Python 3 – Try It Online"
#1: Initial revision
# [Python 3], 53 bytes <!-- language-all: lang-python --> <pre><code>def f(x,y): 	for i in range(len(x)):print(end=x[i]*y) </code></pre> [Try it online!][TIO-ktdlphsn] I'm sure someone will find a `lambda` solution to this. [Python 3]: https://docs.python.org/3/ [TIO-ktdlphsn]: https://tio.run/##RYo7DsIwDEBneoook408lM9U1J07IIaWOGApcqKolZLTh89QxvdJdXlFPbXm2BsPhSoO3c7HbMSImjzpkyGwQkEcUhZdgNWN5Sb3fcWWxp/rPNhpflg64CUBfvHKIURL/SZcXOfAlo7/RSydN/qUHtsb "Python 3 – Try It Online"