Review {help} built in functions


I hate looking for an answer when trying to debug a code, especially with the first time learning, its teeth grinding

hello = raw_input("wish on my well....")

def distance_from_zero(number):
       if type(number) == int or type(number) == float:
          return abs(number)

your argument is ?
if the type of that argument is an int or that type is a float

then return that argument that requests a positive number

:::remember to use tab for if, elif, else
::::::::remember their code has be precise on certain challenges, return not print


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.