Practice makes perfect quick question


#1

https://www.codecademy.com/en/courses/python-beginner-c7VZg/1/5?curriculum_id=4f89dab3d788890003000096#

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)
    
    else:
        return False

#2

quotation marks: "

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


#3

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