writing code over several lines
Michael Sparks
zathras at thwackety.com
Fri Oct 17 10:04:05 EDT 2003
More information about the Python-list mailing list
Fri Oct 17 10:04:05 EDT 2003
- Previous message (by thread): writing code over several lines
- Next message (by thread): writing code over several lines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yup, just do it : (!) Python 2.3 (#1, Jul 30 2003, 12:17:50) [GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> LIST = [[100, 101, 102], [200, 201, 202], [300, 301, 302], ... [400, 401, 402], [500, 501, 502], [600, 601, 602], ... [700, 701, 702], [800, 801, 802], [900, 901, 902]] >>> >>> LIST [[100, 101, 102], [200, 201, 202], [300, 301, 302], [400, 401, 402], [500, 501, 502], [600, 601, 602], [700, 701, 702], [800, 801, 802], [900, 901, 902]] :-) Michael. On 17 Oct 2003, Dominik Kaspar wrote: > i want to initialize a constant list at the beginning of a python > program. but the list is too big for one line. is there any > possibility to spread the list over several lines, so that the code > looks neat again? > > something like: > LIST = [[100, 101, 102], [200, 201, 202], [300, 301, 302], > [400, 401, 402], [500, 501, 502], [600, 601, 602], > [700, 701, 702], [800, 801, 802], [900, 901, 902]] > > thanks in advance > dominik > -- > http://mail.python.org/mailman/listinfo/python-list >
- Previous message (by thread): writing code over several lines
- Next message (by thread): writing code over several lines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list