Python Forum
How does the code run? My code wrong? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How does the code run? My code wrong? (/thread-21691.html)



How does the code run? My code wrong? - jollydragon - Oct-10-2019

[attachment=731]

Referring to the screenshot above, you can see the "print()" was excuted 2 times, although 1 time is expected.
According to the results printed, the second time excution is expected because the first time looks like "candles_scanned = self.candle_begin + self.candles_quantity" wasn't excuted at all.
I'm so confused how this kind of issue happened, and appreciate if anyone can suggest how to get it fixed.