Python Forum
Syntax Error Invalid Syntax / ghost Variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax Error Invalid Syntax / ghost Variable
#1
Hi i'm begginer in Python Language and for this problem i don't success to found the solution to stop that
Someone have a Solution ?

[Image: 703dd17866]
Reply
#2
Because the compiler depends on the structure of the program to determine what is valid and is not valid, sometimes errors earlier in the program can make a later line be detected as an error.

If the line it is whining about looks correct, look closely at the previous lines. Often you may have an error there like not having a closing quote or a closing bracket.
Reply
#3
Ah that's practical, anyway thank you for the information it will be very useful later and it allowed me to find the missing paranthesis 2 line above / problem solved
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Syntax for Doubling a number ksp_802 3 598 Jan-12-2025, 07:04 PM
Last Post: ksp_802
  POST Syntax error amplay 0 626 Aug-07-2024, 02:43 PM
Last Post: amplay
  Please Help With Syntax - New To Python 3 jgbarber65 4 1,225 Jun-04-2024, 06:59 PM
Last Post: snippsat
  is this really a syntax error? Skaperen 4 1,586 May-25-2024, 07:31 AM
Last Post: snippsat
  World Clock syntax error OscarBoots 1 1,072 May-03-2024, 05:20 AM
Last Post: snippsat
  Syntax error for "root = Tk()" dlwaddel 15 6,193 Jan-29-2024, 12:07 AM
Last Post: dlwaddel
Photo SYNTAX ERROR Yannko 3 1,273 Jan-19-2024, 01:20 PM
Last Post: rob101
  Basic syntax zenkalidas 2 1,049 Jan-17-2024, 10:17 PM
Last Post: deanhystad
  I'm looking for the syntax of a complex exponent, like: 2 ** (n - m) CHANCEMAN 2 1,356 Dec-29-2023, 01:53 PM
Last Post: Yoriz
  error: invalid command 'egg_info' TimTu 0 1,762 Jul-27-2023, 07:30 AM
Last Post: TimTu

Forum Jump:

User Panel Messages

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