range(python3)
francnstein
Posted on April 22, 2020
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 𝗐𝗂𝗍𝗁 ❤
💖 💪 🙅 🚩
francnstein
Posted on April 22, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
computerscience State Machines in Practice: Implementing Solutions for Real Challenges
March 18, 2024