Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Jeffery Jones
Jeffery Jones
2,769 Points

Can someone help me with this code? i'm trying to coerce it into outputting an Integer at the end w/ no decimals:

def ky_batch_split(total_mail_batches, total_fax_batches, number_of_workers): fax_batch_per_person = total_fax_batches / number_of_workers mail_batch_per_person = total_mail_batches / number_of_workers return ("fax:",fax_batch_per_person, "mail:", mail_batch_per_person)

mail_work = int(input("How many mail batches are there? ")) fax_work = int(input("How many fax batches are there? ")) work_force = int(input("How many DEO's available today? "))

batches_each = ky_batch_split(mail_work, fax_work, work_force)

print("each DEO gets", batches_each)