Max()


#1



https://www.codecademy.com/en/courses/python-beginner-c7VZg/3/2?curriculum_id=4f89dab3d788890003000096


The code works but actually doesn't. It gives me the okay to go, though.


Expecting one number but instead print prints (12,15) (incl. parenthesis) which is quite weird, because explaination says otherwise. Can someone explain? (It didn't work with more numbers)


maximum = (12, 15)
max(maximum)
print maximum


#2

Reason:
Because you're printing maximum (which is a list)

Hint**
You're not printing max(maximum)


#3

Thanks for explaining. Helped me to understand.


#4

Youre welcome! :slight_smile:
keep up the good work! :thumbsup:


#5

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