I have a question regarding the Default arguments lesson (7/11). For this code,:
def create_spreadsheet(title, row_count=1000):
print("Creating a spreadsheet called "+ title + "with" + str(row_count) + "rows.")
create_spreadsheet("downloads", row_count)
I get the following NameError: name ‘row_count’ is not defined.
I don’t understand this, didn’t I define it as a default argument in the function definition with “1000”?