![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
def downUp(word):
if len(word) == 1:
print word # Print one-letter word
return
else:
print word # First printing of multiple-letter word
downUp(word[1:])
print word # Second printing of multiple-letter word