← Back to challenges

Buggy Code (Part 2)

PythonMediumbugslanguage_fundamentals

Instructions

Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get an idea of what the function should do.

Examples

max_num(3, 7) ➞ 7

max_num(-1, 0) ➞ 0

max_num(1000, 400) ➞ 1000

Notes

  • READ EVERY WORD CAREFULLY, CHARACTER BY CHARACTER!
  • Don't overthink this challenge; it's not supposed to be hard.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Compare Strings by Count of Characters