Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, December 8, 2012

LearnStreet Python Lesson 5 Exercise 7


#sample solution


def run():
    """
    print each letter in the string using the for loop syntax and then return the last character sequence
    """
    str = "LearnStreet!"
    for char in str:
        print char
    return str[len(str)-1]  

run()

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts