General question: range vs. len


#1

what is the difference between range and len? Thanks!


#2

Hi, @felicity_johnson_mai,

The range function will return a list of numbers. The len function returns just one number, which represents how many items are in a string or other object, such as a list.