[issue43289] step bug in turtle's for loop

2021-02-26 Thread Yehuda Katz
Yehuda Katz added the comment: Thank you Terry, and take care. Yehuda Virus-free. www.avg.com

[issue43289] step bug in turtle's for loop

2021-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yehuda, one can also ask questions like this on python-list. In the future, when responding by email, please delete the message being responded to, so it does not get repeated when posted to the web page. -- nosy: +terry.reedy resolution: -> not a b

[issue43289] step bug in turtle's for loop

2021-02-22 Thread Yehuda Katz
Yehuda Katz added the comment: Thank you Dennis for taking the time to answer. Yehuda Virus-free. www.avg.com

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: If I understand correctly, changing the -1 to a -2 does not actually make the program "crash" -- you just only see one black circle. The reason is that range(40, 0, -2) produces 40, 38, 36, etc., all of which are even numbers, so rad % 2 is always 0, so col[

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Yehuda Katz
Yehuda Katz added the comment: Correction to my msg387472: Every *even* step crashes the code. -- ___ Python tracker ___ ___ Python

[issue43289] step bug in turtle's for loop

2021-02-21 Thread Yehuda Katz
New submission from Yehuda Katz : from turtle import * col = ["black", "white"] for rad in range(40, 0, -1): dot(5*rad, col[rad % 2]) done() == Any other step than -1 crashes the code. Thank you. -- messages: 387472 nosy: Yehuda priority: normal severity