I am having trouble doing the following problem print alternating case (PyThOn) here is my code
this only one of my tries I am trying to do it using basic python only please help
Code:
word = str(input("Please choose a word: "))
lengthOfWord = len(word)
every2ndLetter = word[1:lengthOfWord:2]
every1stLetter = word[0:lengthOfWord:2]
for char in range(lengthOfWord):
w = every1stLetter[::1]
o = every2ndLetter[::1]
w = list(w)
o = list(o)
word = w.insert(1,o)
print(str(word))
this only one of my tries I am trying to do it using basic python only please help