You can use the round() function or format the float as a string using the format() method or f-strings.