Computer Science, asked by shanjit69, 19 days ago

write a python program to get a string from the user and to display alternative character from the string. you must use (for loop without using Range and slicing concept).

Guys please don't spam!!!!!​

Answers

Answered by gautamsneha854
1

Answer:

>>> s

'abcdefg'

>>> b = ""

>>> for i in range(len(s)):

... if (i%2)==0:

... b+=s[i]

...

>>> b

'aceg'

>>>

Similar questions