11 lines
298 B
Python
11 lines
298 B
Python
def separate(numbers, threshold):
|
|
return(
|
|
[num for num in numbers if num < threshold],
|
|
[num for num in numbers if num >= threshold],
|
|
)
|
|
|
|
def multiplication_table(n):
|
|
return [[(x+1)*(y+1) for x in range(n)] for y in range(n)]
|
|
|
|
if __name__ == "__main__":
|
|
print(multiplication_table(4)) |