Menu
Coddy logo textTech

Practice #1

Lesson 10 of 12 in Coddy's File Handling in Python course.

challenge icon

Challenge

Easy

Write a function get_max_min_numbers which gets a filename as argument and return the maximum and minimum numbers in the file.

The file is formatted like this,

1,4,12,241,32,-4,213

And for the above file you should return a string like this:

241,-4

Try it yourself

def get_max_min_numbers(filename):
    # Write code here

All lessons in File Handling in Python