0
Can you help me with this question I am unable to understand how to solve it
create & print a variable, other_word, made of every other letter in long_word long_word = "juxtaposition"
2 Answers
0
You need to say what language you are working in and would be good to show any progress you have made.
Here is one way to do it in python
https://code.sololearn.com/cAkA0fPKDps7
0
It means a print second letter of long_word and saves in other_word variable and output would be: jxaoiin
you can get out by following code but it's not fullfill the requirement of the question.
# [ ] create & print a variable, other_word, made of every other letter in long_word
long_word = "juxtaposition"
other_word= ''
for letter in long_word:
print(long_word[::2])
break