+ Register to Reply
Results 1 to 8 of 8

Thread: Python does not support increment and decrement operators like the ones in C: - Unix / Linux Games Chat (View Game Forum)

  1. #1

    Feed Python does not support increment and decrement operators like the ones in C:

    UNIX: Python does not support increment and decrement operators like the ones in C: n++ or --n.

    So any idea how to implement increment or decrement in a py script??

  2. #2

  3. #3
    never used python, but you cant just do n+=1 or n= n+1?

  4. #4
    This is Python , that's way there is no idea :P

  5. #5
    Set up a counter variable, then define that counter variable to a data type. Link it with the counter and whala you have increments or decrasing

  6. #6
    I'm agree with Richard Twitchard, n+=1 is a good way.

  7. #7

  8. #8

+ Register to Reply

Similar Threads

  1. Replies: 1
    Last Post: 04-01-2013, 04:35 AM
  2. Replies: 1
    Last Post: 03-31-2013, 06:35 AM
  3. Urban Rivals Python Card
    By Harley Quinn in forum Urban Rivals
    Replies: 0
    Last Post: 11-07-2012, 10:42 AM
  4. Zombie Jombie Python+
    By Aeron in forum Zombie Jombie Wiki & Guide
    Replies: 0
    Last Post: 07-10-2012, 05:46 PM
  5. Zombie Jombie Python
    By Aeron in forum Zombie Jombie Wiki & Guide
    Replies: 0
    Last Post: 07-10-2012, 05:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •