The new £5 notes have been recently released in the UK and they've certainly became a sensation! Even those of us who haven't been carrying any cash around for a while, having given in to the convenience of cards, suddenly like to have some of these in their purses and pockets. But how many of them could you get with what's left from your salary after paying all bills? The programme that you're about to write will count this for you!

Given a salary and the array of bills, calculate your disposable income for a month and return it as a number of new £5 notes you can get with that amount. If the money you've got (or do not!) doesn't allow you to get any £5 notes return 0.

£££ GOOD LUCK! £££

Source: codewars | Difficulty: EASY
Tags: Data structures

Starter code: def get_new_notes(salary,bills):
	

Solutions:
def get_new_notes(salary, bills):
	return max(salary - sum(bills), 0) // 5


get_new_notes = lambda s, b: max(s - sum(b), 0) // 5


def get_new_notes(salary, bills):
	remaining = (salary - sum(bills)) // 5
	return remaining if remaining > 0 else 0


def get_new_notes(salary, bills):
	balance = salary - sum(bills)
	return 0 if balance <= 0 else balance // 5


def get_new_notes(salary, bills):
	tb = sum(bills)
	return int((salary - tb) / 5) if salary > tb else 0


def get_new_notes(salary, bills):
	for bill in bills:
		salary -= bill
	return max(int(salary / 5), 0)