Re: A little test for you Guys😜

2015-09-23 Thread alister
On Wed, 23 Sep 2015 00:56:19 +0100, MRAB wrote: > On 2015-09-23 00:32, Mark Lawrence wrote: >> On 22/09/2015 19:43, Python_Teacher via Python-list wrote: >>> you have 10 minutes😂 Good luck!! >>> >>> >>> 1. What is PEP8 ? >> >> It's the one between PEP7 and PEP9. >> >> >>> 2. What are the different

Re: A little test for you Guys😜

2015-09-22 Thread Christian Gollwitzer
You've got a lot of sensible answers, but let me add to this one: Am 22.09.15 um 20:43 schrieb Python_Teacher: input = { 'foo1': 'bar1', 'chose': 'truc', 'foo2': 'bar2', } output = { 'bar1': 'foo1', 'truc': 'chose', 'bar2': 'foo2' } This one can be done as a dict

Re: A little test for you Guys😜

2015-09-22 Thread Ray Cote
On Tue, Sep 22, 2015 at 7:32 PM, Mark Lawrence wrote: > >> 2 Lists >> > > Tut, tut, tut. That is not a list, that is a tutple. -- https://mail.python.org/mailman/listinfo/python-list

Re: A little test for you Guys😜

2015-09-22 Thread MRAB
On 2015-09-23 00:32, Mark Lawrence wrote: On 22/09/2015 19:43, Python_Teacher via Python-list wrote: you have 10 minutes😂 Good luck!! 1. What is PEP8 ? It's the one between PEP7 and PEP9. 2. What are the different ways to distribute some python source code ? Write on sheet of paper, fol

Re: A little test for you Guys😜

2015-09-22 Thread Chris Angelico
On Wed, Sep 23, 2015 at 9:32 AM, Mark Lawrence wrote: >> >> 1. What is the type of g ? >> 2. What is the value of a ? >> 3. What is the value of b ? >> 4. What is the value of c ? > > > How the hell would I know? Basic schooling, Mark, basic schooling. 1. Newton meters squared per kilogram squar

Re: A little test for you Guys😜

2015-09-22 Thread Igor Korot
Hi, On Tue, Sep 22, 2015 at 7:32 PM, Mark Lawrence wrote: > On 22/09/2015 19:43, Python_Teacher via Python-list wrote: > >> you have 10 minutes😂 Good luck!! >> >> >> 1. What is PEP8 ? >> > > It's the one between PEP7 and PEP9. > > >> 2. What are the different ways to distribute some python source

Re: A little test for you Guys😜

2015-09-22 Thread Mark Lawrence
On 22/09/2015 19:43, Python_Teacher via Python-list wrote: you have 10 minutes😂 Good luck!! 1. What is PEP8 ? It's the one between PEP7 and PEP9. 2. What are the different ways to distribute some python source code ? Write on sheet of paper, fold into paper dart, throw from window. 2

Re: A little test for you Guys😜

2015-09-22 Thread Lj Fc via Python-list
On Tuesday, September 22, 2015 at 11:19:00 PM UTC+2, sohca...@gmail.com wrote: > On Tuesday, September 22, 2015 at 11:45:00 AM UTC-7, Lj Fc wrote: > > you have 10 minutes😂 Good luck!! > > > > > > 1. What is PEP8 ? > > > > 2. What are the different ways to distribute some python source code ? > >

Re: A little test for you Guys😜

2015-09-22 Thread James Harris
wrote in message news:5218c7f9-74ea-4ca0-abd1-46a9bcd3d...@googlegroups.com... ... Pretty sure this guy is asking us to do his homework. :-P Maybe (and I hope not) but asking what PEP8 is could be easily found on the internet and asking what the values would be at the end of the program

Re: A little test for you Guys😜

2015-09-22 Thread Ian Kelly
On Tue, Sep 22, 2015 at 3:18 PM, wrote: > On Tuesday, September 22, 2015 at 11:45:00 AM UTC-7, Lj Fc wrote: >> you have 10 minutes😂 Good luck!! > > Pretty sure this guy is asking us to do his homework. :-P Well, looks like it was due 2 hours ago. -- https://mail.python.org/mailman/listinfo/pyt

Re: A little test for you Guys😜

2015-09-22 Thread sohcahtoa82
On Tuesday, September 22, 2015 at 11:45:00 AM UTC-7, Lj Fc wrote: > you have 10 minutes😂 Good luck!! > > > 1. What is PEP8 ? > > 2. What are the different ways to distribute some python source code ? > > 2 Lists > > Let's define the function plural : > > def plural(words): > plurals = []

Re: A little test for you Guys😜

2015-09-22 Thread James Harris
On Tuesday, September 22, 2015 at 7:45:00 PM UTC+1, Lj Fc wrote: > you have 10 minutes😂 Good luck!! A good set of questions, IMO. Am answering as someone coming back to Python after a few years. > 1. What is PEP8 ? Coding guidelines, I think. > 2. What are the different ways to distribute some

Re: A little test for you Guys😜

2015-09-22 Thread Akira Li
Python_Teacher via Python-list writes: ... > Let's define the function plural : > > def plural(words): > plurals = [] > for word in words: >plurals.append(word + 's') > return plurals > > for word in plural(['cabagge','owl','toy']): > print word plural() should accept a s

Re: A little test for you Guys😜

2015-09-22 Thread Sven R. Kunze
Hmm, why not. :D On 22.09.2015 20:43, Python_Teacher via Python-list wrote: you have 10 minutes😂 Good luck!! 1. What is PEP8 ? A PEP. 2. What are the different ways to distribute some python source code ? unison, rsync, scp, ftp, sftp, samba, http, https, mail, git, 2 Lists Let's

Re: A little test for you Guys😜

2015-09-22 Thread Ian Kelly
On Tue, Sep 22, 2015 at 12:43 PM, Python_Teacher via Python-list wrote: > you have 10 minutes😂 Good luck!! Sorry, I'm more interested in critiquing the questions than answering them. > Let's define the function plural : > > def plural(words): > plurals = [] > for word in words: >

A little test for you Guys😜

2015-09-22 Thread Python_Teacher via Python-list
you have 10 minutes😂 Good luck!! 1. What is PEP8 ? 2. What are the different ways to distribute some python source code ? 2 Lists Let's define the function plural : def plural(words): plurals = [] for word in words: plurals.append(word + 's') return plurals for word in plu