Python Forum
Need help with fixing iteration counter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with fixing iteration counter
#8
(Oct-18-2018, 05:32 PM)buran Wrote:
(Oct-18-2018, 01:09 PM)ichabod801 Wrote: Wouldn't that work if OP was using 2.7?
I guessed it's python3, because of the print function, but of course you are right that it will work in python2.

Checked my sys.version, turns out I actually use python2...
While everything works, I'm a tiny bit confused...What's the difference in a nutshell between python3 and python2? and also, why wouldn't
the program run if I wrote in in python3 and how can I fix it?
Cheers
Reply


Messages In This Thread
Need help with fixing iteration counter - by Kapolt - Oct-17-2018, 09:17 PM
RE: Need help with fixing iteration counter - by Kapolt - Oct-18-2018, 07:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  fixing error TypeError: 'float' object is not subscriptable programmingirl 1 1,531 Jan-28-2023, 08:13 PM
Last Post: deanhystad
  Need help fixing Index Error adesimone 1 1,313 Nov-21-2022, 07:03 PM
Last Post: deanhystad
  Fixing my backup function Beginner_coder123 4 3,057 Jun-15-2019, 07:56 PM
Last Post: Beginner_coder123
  Fixing arrays output in Python WLST script pkbash 2 4,014 Feb-28-2019, 06:20 PM
Last Post: pkbash
  i need help in fixing my scientific calculator coding : (, im using python 3.5.5 hans77 1 4,181 Oct-17-2018, 03:26 AM
Last Post: stullis

Forum Jump:

User Panel Messages

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