Slideshow Example

Overview

Show Code

def example_function(a):
    if a > 0:
        return "A is positive!"
    elif a < 0:
        return "A is negative!"
    else:
        return "A is zero!"

Show Code with Walkthrough

def example_function(a):
    if a > 0:
        return "A is positive!"
    elif a < 0:
        return "A is negative!"
    else:
        return "A is zero!"