Can anyone help me I tried my best (I tried for 10 times) didn't worked | SoloLearn: Learn to code for FREE!

0

Can anyone help me I tried my best (I tried for 10 times) didn't worked

Let's test your coding skills! Take a string as input and output each letter of the string on a new line, repeated N times, where N is the position of the letter in the string. Sample Input: data Sample Output: d aa ttt aaaa

4/10/2021 4:47:57 AM

Codemurai

11 Answers

New Answer

+6

Where's the attempt, I can't see

+5

Please show your attempt

+3

Just copy the code to your clipboard and paste it here

+2

FOR EVERYONE I SUCCESSFULLY COMPLETED

+2

word=input("Enter Word") print() i=0 while(i<len(word)): print(word[i]*(i+1)) i+=1

+1

Note:-i tried my best

+1

I don't how to share attempt it is a challenge

+1

Create code -> share it -> copy to clipboard-> pest it here

0

#try this a = input() for w in range(len(a)): b = a[w]*(w+1) print(b)

0

this way also work word = list(input()) for i in range(len(word)): print(word[i]*(i+1)) or word = input() for i in word: print(i*word.index(i))