Every Friday and Saturday night, farmer counts amount of sheep returned back to his farm (sheep returned on Friday stay and don't leave for a weekend).

Sheep return in groups each of the days -> you will be given two arrays with these numbers (one for Friday and one for Saturday night). Entries are always positive ints, higher than zero.

Farmer knows the total amount of sheep, this is a third parameter. You need to return the amount of sheep lost (not returned to the farm) after final sheep counting on Saturday.

Example 1: Input: {1, 2}, {3, 4}, 15 --> Output: 5

Example 2: Input: {3, 1, 2}, {4, 5}, 21 --> Output: 6

Good luck! :-)

Difficulty: introductory

Starter code:

def lostSheep(friday,saturday,total):
	

Solutions:
def lostSheep(friday,saturday,total):
    return total - sum(friday+saturday)

def lostSheep(friday,saturday,total):
    return total - sum(friday) - sum(saturday)

def lostSheep(friday,saturday,total):
    sheeps = friday + saturday
    return total - sum(sheeps)

def lostSheep(friday, saturday, total):
    return total - sum(saturday) - sum(friday)

def lostSheep(friday,saturday,total):
    return total - (sum(friday) + sum(saturday))

def lostSheep(friday,saturday,total):
    fritag = 0
    for number in friday:
        fritag = fritag + number
    samstag = 0
    for number in saturday:
        samstag = samstag + number
    return int(str(total)) - (fritag + samstag)



def lostSheep(friday,saturday,total):
    sheep = 0
    for num in friday:
        sheep += num
    for num in saturday:
        sheep += num
    return total-sheep

def lostSheep(friday,saturday,total):
    sheeps =0
    for i in range(len(friday)):
        sheeps+=friday[i]
    for i in range(len(saturday)):
        sheeps+=saturday[i]
    return total-sheeps

def lostSheep(friday,saturday,total):
    s = total - (sum(friday) + sum(saturday))
    return s

def lostSheep(friday,saturday,total):
    weekend_total = sum(friday) + sum(saturday)
    difference = total - weekend_total
    return difference