A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-February/042828.html below:

[Python-Dev] What is the ":" for in python?

[Python-Dev] What is the ":" for in python? [Python-Dev] What is the ":" for in python?Tom Emerson tree at basistech.com
Fri Feb 27 14:39:11 EST 2004
Barry Scott writes:
> if x > 10
> and x < 20:
>      do_in_range()
> 
> rather then
> 
> if( x > 10
> and x < 20 ):
>      do_in_range()

You could write

if x > 10   \
and x < 20:
     do_in_range()

-- 
Tom Emerson                                          Basis Technology Corp.
Software Architect                                 http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"

More information about the Python-Dev 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