python interview quuestions

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Aug 8 20:39:31 EDT 2010


On Sun, 08 Aug 2010 17:28:59 -0700, Peter wrote:

> On Aug 9, 6:49 am, Terry Reedy <tjre... at udel.edu> wrote:
>> On 8/7/2010 7:53 AM, Peter Otten wrote:
>>
>> > You mean you'd go for the candidate who took the conservative
>> > approach and got it right:
>>
>> > print 1
>> > print 2
>> > print 'Fizz'
>> > print 4
>> > print 'Buzz'
>> > print 'Fizz'
>> > print 7
>> > print 8
>> > print 'Fizz'
>> > print 'Buzz'
>>
>> Way too verbose. How about
>> print("1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n etc.
>>
>> --
>> Terry Jan Reedy
> 
> And to hell with the code being maintainable afterwards? :-)


I'm pretty sure both Peter Otten and Terry Reedy were being sarcastic and/
or ironic.


-- 
Steven



More information about the Python-list mailing list