Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
y syntax errors?
#1
this is my code but for some reason the colons and print always gives a syntax error, des anyone know why?
Reply
#2
You probably missed a close-parenthesis on a line before the one you were having an issue with.
Reply
#3
sir sparkz alot, so where do i put it? idk

(Sep-16-2017, 12:12 PM)Saxycool12345 Wrote: sir sparkz alot, so where do i put it? idk
tbh i dont get how it is in the wrong place, it says general coding help so y is it wrong?
Reply
#4
It is not the location of the post, rather the manner in which you post. Specifically, you are simply pasting text and not using the code tags as required and explained in the sites Help document. Failure to use the tags makes your code difficult to read and follow since there is, at a minimum, no indentation. This leads the reader to think you did not include any or that the reader is expected to know where you intended to put it. The Admins have done a great job of making the posting of code, errors, quotes etc as easy as possible by adding the tag buttons to the editor bar. So kindly use them.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Syntax errors: Struggling to setup enviroment and load packages AH56 5 2,879 Jun-30-2021, 01:01 PM
Last Post: AH56
  Pip Syntax Errors in CMD: Windows 10 and Python 3.8.1 jamesphopper 2 4,531 Feb-08-2020, 07:21 PM
Last Post: jamesphopper
  Mysterious syntax errors... help? friendlymegalomaniac 3 3,041 Apr-26-2018, 09:22 PM
Last Post: micseydel
  random syntax errors s4lty_b0i 3 3,243 Nov-26-2017, 03:45 PM
Last Post: heiner55
  Decorator toy code throws syntax errors kevinxhi 3 3,630 Sep-04-2017, 03:01 AM
Last Post: kevinxhi
  Syntax errors jon65 22 19,338 Aug-20-2017, 01:26 PM
Last Post: jon65

Forum Jump:

User Panel Messages

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