LOOP with fixed final index value
Stephan Houben
stephanh42 at gmail.com.invalid
Sat Sep 30 16:23:08 EDT 2017
More information about the Python-list mailing list
Sat Sep 30 16:23:08 EDT 2017
- Previous message (by thread): merits of Lisp vs Python
- Next message (by thread): newb question about @property
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Op 2017-09-27, Robert L. schreef <No_spamming at noWhere_7073.org>: >> > (defun myloop (initial final increment) >> > (loop for i = initial then (+ i increment) >> > while (< i final) >> > do (print i) >> > finally (let ((i final)) (print i)))) >> > > In Python? myloop = lambda *args: print("{}{}".format("".join(map("{}\n".format, range(*args))), args[1])) Of course.
- Previous message (by thread): merits of Lisp vs Python
- Next message (by thread): newb question about @property
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list