Lab 4

Lab 4

Lab Description:

This lab was short, what it really does it just revert any name that the user introduce in the “input” (what the program ask for). after the user introduce a name the program receive it and then it just revert the name by putting one letter per line.

Code:

#Franklin Quintuna
#Section 9304
#4/9/2013
# lab 4
print 'PUT YOUR NAME BACKWARDS'
name=raw_input('Enter a name ')
size= len(name)
while size!= 0:
    name_rev=name[size-1]
    size=size-1
    print name_rev

Screenshots: