10 XP challenge

Increase the Step Each Time

easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve

Task
Your mission

Return count values beginning at initial. Add step to obtain the next value, then increase the step by 1 before each further addition. count is 0 to 20. All lists have at most 20 items; text is ASCII and at most 30 characters. Numeric inputs and list items are between -100 and 100 unless a narrower range is stated.

Examples

InputReturn
initial = 4, step = 2, count = 0[]
initial = 4, step = 2, count = 1

answer: [] → [4]. current: 4 → 6. increment: 2 → 3. The result is [4].

[4]

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.