Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 503 Bytes

What_is_between.md

File metadata and controls

41 lines (24 loc) · 503 Bytes

CodeWars Python Solutions


What is between?

Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, including them.

For example:

a = 1
b = 4
--> [1, 2, 3, 4]

Given Code

def between(a,b):
    pass

Solution

def between(a,b):
    return [i for i in range(a,b+1)]

See on CodeWars.com