about | help | code help+videos | done | prefs |
Given an integer use the correct arguments for the range(x,x,x) function to return a list of numbers (you can turn a range into a list by using list(range(x,x,x))
1) if the number is even, use the range function to return a list of all even integers from 0 up to and including the number 2) if the number is odd, use the range function to return a list of all odd integers from 1 up to and including the numberIf the number is 10 or more, use the range function to return a list of all multiples of 5 from 0 up to and including the number If the number is less than 0, use the range function, that uses the number as its 3rd argument, to return a list that starts at 20 and does not contain any negative numbers. rightRange(5) → [1, 3, 5] rightRange(6) → [0, 2, 4, 6] rightRange(-4) → [20, 16, 12, 8, 4, 0] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy