 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

+6

Where's the attempt, I can't see

+5

+4

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

+3

Just copy the code to your clipboard and paste it here

+2

FOR EVERYONE I SUCCESSFULLY COMPLETED

+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

+1

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

+1

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))

+1

Try try but don't cry because one day you will touch the sky

+1

text = input() for count, letter in enumerate(text): print(letter * (count+1))

+1

n="data" for i in range(len(n)): for j in range(-1,i): print(n[i],end="") print()