Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

History tends to exaggerate. -- Col. Green, "The Savage Curtain", stardate 5906.4


devel / comp.lang.python / Re: keep getting a syntax error on the very first program I am running

SubjectAuthor
o Re: keep getting a syntax error on the very first program I am runningMRAB

1
Re: keep getting a syntax error on the very first program I am running

<mailman.181.1642211249.3079.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16706&group=comp.lang.python#16706

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: keep getting a syntax error on the very first program I am running
Date: Sat, 15 Jan 2022 01:47:19 +0000
Lines: 50
Message-ID: <mailman.181.1642211249.3079.python-list@python.org>
References: <C9C2B9D2-841C-427A-BD61-7D06CCD9B4C5@hxcore.ol>
<17eb4ac1-796b-bb0e-0134-c9c11656d6ed@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de UbfgIgtdIaeBB283TS8/0gl3lWRlES0kxDlmq9ril02Q==
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=sur2/53P;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.07;
'from:addr:python': 0.09; 'idle': 0.09; 'prompt.': 0.09;
'received:192.168.1.64': 0.09; 'subject:first': 0.09; 'tags':
0.09; "(i'm": 0.16; 'also.': 0.16; 'assuming': 0.16; 'bob': 0.16;
'entirety': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16;
'received:84.93': 0.16; 'received:84.93.230': 0.16;
'received:plus.net': 0.16; 'subject:program': 0.16;
'subject:running': 0.16; 'subject:syntax': 0.16; 'syntax.': 0.16;
'wrote:': 0.16; 'python': 0.16; 'to:addr:python-list': 0.20;
'tried': 0.26; 'bit': 0.27; 'output': 0.28; 'error': 0.29; 'header
:User-Agent:1': 0.30; 'dec': 0.31; 'program,': 0.31; 'program':
0.31; 'received:192.168.1': 0.32; 'but': 0.32; 'header:In-Reply-
To:1': 0.34; 'running': 0.34; 'invalid': 0.35; "it's": 0.37;
'received:192.168': 0.37; 'use': 0.39; 'on.': 0.39; 'prompt':
0.39; 'program.': 0.40; 'key': 0.64; 'shows': 0.67;
'subject:very': 0.69; 'type:': 0.69; 'forgot': 0.84; 'subject: \n
': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1642211241; bh=L65WUiIUpg8+L9FAuhiA8SrDMFQn5y9mQ5WbRpBtAcY=;
h=Date:Subject:To:References:From:In-Reply-To;
b=sur2/53PY1WDWVsR09MDKHyvK6Hgn3Z+PLV81k086OT5KCcPhShyX/4EoeZpQdmrb
DfYxoh1ZcPd4ZTWxGKoq0j2ZktABG17MIrLYWJ1p8vklhFCeH9y2G4EsdqNXZOWrDN
/M7ESfQIVNeRcLL99eyJToOwaKE2ykVNXMVRhq82SwXnFndeLNhazKZ9SugEC8zS2e
XcbdmtZ+zUd3iq/b9+P2RbZCcfKx8VA1UPUvONFSTVW03DjI+hNdpIyPbYmgDF1I9y
Y9+ucvsuj5jjPIyWSG5s1Z2xg71cep3zFLGrlwcFvxUoS9kBGHTnQJh+uFLxtLJfJM
sNwGBut9tn+rQ==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=GqEhRm5C c=1 sm=1 tr=0 ts=61e227a9
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=fdltOMklMcC05Q9K:21 a=IkcTkHD0fZMA:10 a=RsqhJGmQV7bpopMdhIIA:9
a=QEXdDO2ut3YA:10 a=Cts4bmBvQGQL5ZEx_GPX:22
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-GB
In-Reply-To: <C9C2B9D2-841C-427A-BD61-7D06CCD9B4C5@hxcore.ol>
X-CMAE-Envelope: MS4xfFBa14ALnLfQPGvzgxe51GaGk6LNFtqMxMjv8afd/N+4HEO+jn1FmQ4fboeL63PAAYxv0DQw0co6eANWL/Wfcy7giueeS+HbWFGXwnkVBPGR4r+JoCcY
T4oOk58jk3h7CKyQ9IGx66HwZ+ZjYaHZlrmBrEtboLkjd4uGv/2gWpgYzXwk/GqWgTXMqxQaHWGPOkK5M5PjbEE+rA4V6JoLgR8=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <17eb4ac1-796b-bb0e-0134-c9c11656d6ed@mrabarnett.plus.com>
X-Mailman-Original-References: <C9C2B9D2-841C-427A-BD61-7D06CCD9B4C5@hxcore.ol>
 by: MRAB - Sat, 15 Jan 2022 01:47 UTC

On 2022-01-15 01:12, Bob Griffin wrote:
> I am running this program and keep getting this error. Is this normal?
>
>
>
> Invalid syntax. Perhaps you forgot a comma?
>
>
>
> Also the t in tags is highlighted.
>
>
>
> I even tried different versions of Python also.
>
>
>
> Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64
> bit (AMD64)] on win32
>
> Type "help", "copyright", "credits" or "license()" for more information.
>
> print("Hello World")
>
> Hello World
>
> input("\n\nPress the enter key to exit.")
>
I get an error only if I use the entirety of it as a program. Is that
what you're doing, perhaps?

It's not actually a program, but the output from an interactive session.

You start IDLE (I'm assuming that what you're using) and it prints:

Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC
v.1929 64
bit (AMD64)] on win32

and then shows a prompt.

At the prompt you type:

print("Hello World")

and it print the response:

Hello World

and so on.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor