Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help with the code
#4
Your loop is completely wrong. You iterate over account balance which is $10000 so you will do 10000 loops eventually. Instead of years. You check for == to 0 but probability the balans got equal to 0 is minimal. This will fail. Check for <= 0.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Please help with the code - by zarnav - Feb-12-2017, 02:15 PM
RE: Please help with the code - by wavic - Feb-12-2017, 02:17 PM
RE: Please help with the code - by zarnav - Feb-12-2017, 02:20 PM
RE: Please help with the code - by wavic - Feb-12-2017, 02:37 PM
RE: Please help with the code - by zarnav - Feb-12-2017, 04:32 PM
RE: Please help with the code - by ichabod801 - Feb-12-2017, 07:11 PM
RE: Please help with the code - by sparkz_alot - Feb-13-2017, 03:09 PM
RE: Please help with the code - by wavic - Feb-13-2017, 03:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020