Question: The variable word references the string winter. Use for loops to create new strings with various text effects as follows. Variable long_word becomes wwwiiinnnttteeerrr Variable
The variable word references the string ‘winter’. Use for loops to create new strings with various text effects as follows.
Variable long_word becomes ‘wwwiiinnnttteeerrr’
Variable crossed_word becomes ‘XwXiXnXtXeXr’
word = 'winter'
long_word = ''
# write the for loop that traverses word to create
# long_word with value 'wwwiiinnnttteeerrr'
crossed_word = ''
# write the for loop that traverses word to create
# crossed_word with value 'XwXiXnXtXeXr'
print(long_word)
print(crossed_word)
Step by Step Solution
3.35 Rating (170 Votes )
There are 3 Steps involved in it
word winter longword write the for loop that traverses word t... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
63603350033b0_233744.pdf
180 KBs PDF File
63603350033b0_233744.docx
120 KBs Word File
