|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
Re: Fibonacci Sequence
Python can do it in 1:
Code:
for z in range(N-1): print vars().setdefault('a',[1,1]) and a.append(a.pop(0)+a[0]) or a[0][0]
That being shown, this is the antithesis of the language and good coding practice. As one who has had to work with tools coded in Perl, all I will say is that obfuscation isn't nearly as cool as perlers think it is. I'd rather work with something written in a hundred lines of python than in 5 lines of perl. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mechanics of a 3 speed shifting sequence | sanddrag | Technical Discussion | 3 | 27-02-2005 00:34 |
| [FVG]: Opening Sequence | Joshua May | FIRST-related Organizations | 16 | 24-06-2004 00:00 |
| RC bootup sequence | Venkatesh | Programming | 17 | 18-11-2003 20:56 |
| PB_Mode Sequence | DKolberg | Programming | 3 | 17-03-2003 10:54 |
| Competition Sequence for PBasic | ttedrow | Programming | 12 | 23-01-2003 08:49 |