Saturday, July 26, 2014

Day 112

Python at CodeCademy. Worked on Python tutorial 19 of 19, Functions, Review: Built-In Functions! Completed tutorial by reviewing the built-in functions I was previously working with.

The code used:
def distance_from_zero(a):

    if type(a) == int or type(a) == float:
        return abs(a)
        return 'Nope'

There was no interaction for this code:

No comments:

Post a Comment