0

Can someone please help?

for i in range (0,20,_): print:(_)

24th Jul 2016, 9:35 AM
bserdt
2 Answers
+ 3
When the range() function is called with three arguments, this means that the first two arguments will be the start and stop values, and the third will be the «step argument». The step is the amount that the variable is increased by after each iteration. For example: for i in range(0, 20, 2): print(i) So calling range(0, 20, 2) will count zero to eighteen by intervals of two.
24th Jul 2016, 7:00 PM
Francisco GĂłmez GarcĂ­a
Francisco GĂłmez GarcĂ­a - avatar
0
for i in range (0,20,2): print i
24th Jul 2016, 9:42 AM
Tor-Salve Dalsgaard
Tor-Salve Dalsgaard - avatar