Re: super or not super?

2019-07-14 Thread Chris Angelico
On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva wrote: > > Às 15:30 de 12/07/19, Thomas Jollans escreveu: > > On 12/07/2019 16.12, Paulo da Silva wrote: > >> Hi all! > >> > >> Is there any difference between using the base class name or super to > >> call __init__ from base class? > > > > There is

Re: super or not super?

2019-07-14 Thread Paulo da Silva
Às 16:20 de 12/07/19, Rhodri James escreveu: > On 12/07/2019 15:12, Paulo da Silva wrote: > ... > super() also has major advantages if you are stuck with multiple > inheritance.  Raymond Hettinger has an excellent article on this here: > https://rhettinger.wordpress.com/2011/05/26/super-consider

Re: super or not super?

2019-07-14 Thread Paulo da Silva
Às 15:30 de 12/07/19, Thomas Jollans escreveu: > On 12/07/2019 16.12, Paulo da Silva wrote: >> Hi all! >> >> Is there any difference between using the base class name or super to >> call __init__ from base class? > > There is, when multiple inheritance is involved. super() can call > different 'br

Re: How Do You Replace Variables With Their Values?

2019-07-14 Thread Chris Angelico
On Mon, Jul 15, 2019 at 5:45 AM Ian Kelly wrote: > > On Thu, Jul 11, 2019 at 11:10 PM Chris Angelico wrote: > > > > On Fri, Jul 12, 2019 at 2:30 PM Aldwin Pollefeyt > > wrote: > > > > > > Wow, I'm so sorry I answered on the question : "How do you replace a > > > variable with its value". For wha

Re: How Do You Replace Variables With Their Values?

2019-07-14 Thread Ian Kelly
On Thu, Jul 11, 2019 at 11:10 PM Chris Angelico wrote: > > On Fri, Jul 12, 2019 at 2:30 PM Aldwin Pollefeyt > wrote: > > > > Wow, I'm so sorry I answered on the question : "How do you replace a > > variable with its value". For what i understood with the example values, > > CrazyVideoGamez wants

Re: Python string with character exchange

2019-07-14 Thread Reto
On Sun, Jul 14, 2019 at 12:20:56PM -0400, Matt Zand wrote: > Given a string, return a new string where the first and last chars have > been exchanged. This sounds awfully like a homework question. What did you try? What concepts are you missing? Did you already look into slicing / getting element

Python string with character exchange

2019-07-14 Thread Matt Zand
I am new to Python. I am trying to solve below Python question: Given a string, return a new string where the first and last chars have been exchanged. -- Cheers, Matt Zand Cell: 202-420-9192 Work: 240-200-6131 High School Technology Services DC Web Makers