Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding Error
#1
I am copying the text on the textbook for pygame but it is coming out as error when i run the code.Pls see the attached photo.[attachment=2449]I am copying the text on the textbook for pygame but it is coming out as error when i run the code.Pls see the attached photo.

Attached Files

Thumbnail(s)
   
Reply
#2
In Python, assignment is done using =, not +. running+True does not assign True as the value of running. Instead use running = True. Same goes for gamewindow.



Next time post code as text, not images. If you post text I would've corrected the text and posted it back.
Reply
#3
Thank you DEAN...
Post the querry in text next time...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Coding error. xflyerwdavis 2 532 Oct-07-2023, 07:08 PM
Last Post: deanhystad
  Coding error. Can't open directory EddieG 6 1,130 Jul-13-2023, 06:47 PM
Last Post: deanhystad
  python coding error isntitzee 1 2,215 Oct-17-2020, 06:30 AM
Last Post: buran
  Coding error- Not sure where I have put error markers against the code that is wrong Username9 1 1,739 Sep-28-2020, 07:57 AM
Last Post: buran
  coding error iro a menu Rollo 2 2,102 Sep-27-2020, 04:17 PM
Last Post: deanhystad
  Adafruit LIS3DH coding error FitDad73 1 2,011 Aug-30-2020, 01:37 AM
Last Post: bowlofred
  Coding error- help FatherYeals 3 33,340 Mar-27-2020, 02:11 PM
Last Post: deanhystad
  name undefined Coding Error Ewilliam51 2 2,148 Feb-06-2020, 12:19 AM
Last Post: Ewilliam51
  coding error bilawal 11 5,466 Dec-07-2019, 05:23 PM
Last Post: DreamingInsanity
  Pyhton Coding Help Needed (very small error) friduk 2 2,460 Oct-23-2019, 08:41 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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