Oct-10-2020, 09:43 PM
for x in range(len(s)): if x % 2!=0: print(s[x])This is the code I am using to print every other character in a string. However, when I run it, it prints the characters like this:
a
b
c
d
How can I get it to print them in a single line?(ex. abcd)