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
1
Answer:
>>> s
'abcdefg'
>>> b = ""
>>> for i in range(len(s)):
... if (i%2)==0:
... b+=s[i]
...
>>> b
'aceg'
>>>
Similar questions