Q:

Write a Python program to generate groups of five consecutive numbers in a list

0

Write a Python program to generate groups of five consecutive numbers in a list.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

l = [[5*i + j for j in range(1,6)] for i in range(5)]
print(l)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now