A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/107834.html below:

Syntax error [was: Installed modules list?]

Syntax error [was: Installed modules list?] Syntax error [was: Installed modules list?]Gerhard Häring gerhard.nospam at bigfoot.de
Fri Apr 20 16:13:49 EDT 2001
>> You can only join simple statements with a semicolon.  None of the
>> statements that use colons between parts are simple statements.
>
>Is there any way to work around this for the purpose of simple unix
>scripts using python -c, then?  Other than putting the python in a
>separate file, of course.

Type the following in a shell and press ^J for newlines. It works:

python -c "
for i in range(10):
    print i
"

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de
web:    http://highqualdev.com

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4