[newbie] making rows of table with discrete values for different number systems
Asaf Las
roegltd at gmail.com
Sun Feb 2 20:56:43 EST 2014
More information about the Python-list mailing list
Sun Feb 2 20:56:43 EST 2014
- Previous message (by thread): [newbie] making rows of table with discrete values for different number systems
- Next message (by thread): [newbie] making rows of table with discrete values for different number systems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: > Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: > > I'm looking for an efficient method to produce rows of tables like this: > jean you can also try to make below universal for all needed bases: m = lambda m, n: 1 if m & n else 0 k = [[ m(x,8) , m(x, 4), m(x, 2), m(x, 1)] for x in range(10)] print (k)
- Previous message (by thread): [newbie] making rows of table with discrete values for different number systems
- Next message (by thread): [newbie] making rows of table with discrete values for different number systems
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list