Jump to content

mfogar01

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by mfogar01

  1. In the description of the 'super' function, the following statement is made: "Python also has a super() function that will make the child class inherit all the methods and properties from its parent:" This does not sound correct to me but I may be misunderstanding so I am looking for comments. My understanding is that the use of the super() function call does not cause the class to inherit all the methods and parents from its parent. It has already done so by placing the name of the parent class in between the brackets in the class statement. Doesn't super() just allow you to invoke methods and properties from the parent class without referring to it explicity?
  2. A small correction to the English in the https://www.w3schools.com/python/python_tuples.asp page. The sentence "To create a tuple with only one item, you have add a comma after the item, unless Python will not recognize the variable as a tuple." should read "To create a tuple with only one item, you have add a comma after the item, otherwise Python will not recognize the variable as a tuple."
×
×
  • Create New...