Cristopher Zani

Avatar
  • Total activity 2
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • Created

    How to add fields in a constructor

    Answered
    This is my code: class Ship: def __int__(self, name, weight): self.name = name self.weight = weightcosta = Ship("") when I try to add the arguments to the variable costa the prog...
    • 2 followers
    • 1 comment
    • 0 votes