Hi everyone
Basically my husband is a developer and uses Python. With father`s day approaching I came up with an idea of a t shirt with child/parent classes printed on it, using my husbands and daughters names, I remembered my husband trying to explain it to me one day, hence the idea.
Now I spent best part of the day reading through forums and watching tutorials, and I
class Smith
def _init_(self and here I have no idea what follows but all i want is for this to print John Smith
then the child class is class Jane (Smith) and again all I want is to have Jane Smith printed under John
Hope that makes sense. I won`t be running that code anywhere, it will just be printed on a t shirt, still, I would like it to be correct lol
Hope someone can help!
Cheers, Marta
Basically my husband is a developer and uses Python. With father`s day approaching I came up with an idea of a t shirt with child/parent classes printed on it, using my husbands and daughters names, I remembered my husband trying to explain it to me one day, hence the idea.
Now I spent best part of the day reading through forums and watching tutorials, and I
m still baffled by what the code should look like. All I want is couple of simple lines of code, including first and last name, so e.g. husband
s name is John Smith, daughter`s name is Jane Smith. From what I understood I start with class Smith
def _init_(self and here I have no idea what follows but all i want is for this to print John Smith
then the child class is class Jane (Smith) and again all I want is to have Jane Smith printed under John
Hope that makes sense. I won`t be running that code anywhere, it will just be printed on a t shirt, still, I would like it to be correct lol
Hope someone can help!
Cheers, Marta