Skip to content

Instantly share code, notes, and snippets.

@arunsanna
Last active September 27, 2019 13:52
Show Gist options
  • Save arunsanna/d6b649f2c1e15a866a23eaca519333aa to your computer and use it in GitHub Desktop.
Save arunsanna/d6b649f2c1e15a866a23eaca519333aa to your computer and use it in GitHub Desktop.
# My Att Bill Split
internet_bill = int(input("Enter Internet DataPlan charges: "))
user_list = ["arun", "bhargav", "vikas", "venky1", "venky2", "ravi" ]
for user in user_list:
user_charge = int(input("Enter charge for " + user +": "))
print user +" Bill: " + str(user_charge + int(internet_bill / len(user_list)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment