Practice makes perfect quick question


I got the code right (see below), but I'm wondering why return don't need quotation marks like print do?

def cube(number):
    return number**3

def by_three(number):
    if number % 3 == 0:
        return cube(number)
        return False


quotation marks: "

if you want to return/print a string, you need quotation marks for the string. Is unrelated to print/return


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