DEV Community

Cover image for range(python3)
francnstein
francnstein

Posted on

1

range(python3)

The range function creates a sequential list of numbers.
The code below generates a list containing all of the integers, up to 10.

------------------------------------

ex.

nums = list(range(2,20,2))
print(nums)

[2, 4, 6, 8, 10, 12, 14, 16, 18]

solo learn
FRANCNSTEIN© | Created 𝗐𝗂𝗍𝗁 ❤

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay