t Insert Format Arrange View Share Window Help groups.yahoo.com csc 310 fall 201
ID: 3754654 • Letter: T
Question
t Insert Format Arrange View Share Window Help groups.yahoo.com csc 310 fall 2018 - Yahoo Groups Cepre blr News SportsFinance Entertainment Lifestyle Answers Groups Mobile Search Files Search Groups Search W Conversations Photos Files About More Files Attachments Files W lessons 7 and 8 csc 310 Moving around arrays.docx Also print the length with the correct command W Lesson 5 cont Program basics 216.docx print your name 1 letter at a timt across, backward, going down, going up, with space between the letersExplanation / Answer
One might solve this questionin python as follows:
name=input("Tell me your name : ")
name=list(name)
print("Length:",len(name))
print("Name printed across :")
for i in range(0,len(name)):
print(name[i],end=' ')
print(" ")
print("Name printed backwards :")
for i in range(0,len(name)):
print(name[len(name)-i-1],end=' ')
print(" ")
print("Name printed downwards :")
for i in range(0,len(name)):
print(name[i],end=' ')
print(" ")
print("Name printed upwards :")
for i in range(0,len(name)):
print(name[len(name)-i-1],end=' ')
Since it is in python,it will be more readable and easily implementable.
Hope that helps:) .
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.