I would like my program to print every other letter in the string "welcome". like:
e
c
m
Here is the code I have so far:
stringVar = "welcome"
countInt = 7
count = 0
oneVar = 1
twoVar = 2
showVar = stringVar[oneVar:twoVar]
for count in range(countInt):
count = count + 1
oneVar = oneVar + count
twoVar = twoVar + count
print(showVar)
Though it only shows the 2nd letter "e". How can I get the variables oneVar and twoVar to update so that the range changes for the duration of the loop?