[issue33404] Phone Number Generator

2018-05-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Braiden, and welcome! I see that the ticket has already been closed, but another note for the future: please don't paste screenshots of your code, copy and paste the relevant source code. We don't edit code with Photoshop, and

[issue33404] Phone Number Generator

2018-05-01 Thread Braiden Gole
Braiden Gole added the comment: Thanks for the detailed explenation and my apologies. I will contact Stack Overflow in the future when I have an issue. This is my first report in the bug section of Python and I now understand the content that needs to be put under a

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- components: -IDLE ___ Python tracker ___ ___

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- assignee: terry.reedy -> ___ Python tracker ___ ___

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Josh Rosenberg
Change by Josh Rosenberg : -- versions: -Python 3.6 ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Josh Rosenberg
Josh Rosenberg added the comment: You named your loop variable i, overlapping the name of your second to last digit, so you end up replacing the original value of i in each (given the break, the only) loop. So before the loop begins, i has the expected value of

[issue33404] Phone Number Generator

2018-05-01 Thread Braiden Gole
New submission from Braiden Gole : I was creating a small program to generate numbers for fun and I realized that my output is different from my input. The random phone number that I used is: (519-662-6963) and what I get is: (519-662-6953), where the second last digit