Tuesday, June 24, 2014

Day 80

Explored Python at CodeCademy. Worked on Python tutorial 12 of 15, Conditionals & Control Flow, If You're Having...! Some practice with "if" statements.

The code used:

def using_control_once():
    if True:
        return "Success #1"

def using_control_again():
    if True:
        return "Success #2"

print using_control_once()
print using_control_again()

The interaction for this code looked like this:
Success #1
Success #2

No comments:

Post a Comment