79140476

Date: 2024-10-30 09:39:49
Score: 1
Natty:
Report link

Here's the full code [Correct One]

class players:
def __init__(self):
    self.name = 'placeholder'
    self.squad = []

teams = []
teams.append(players())
teams.append(players())
teams[0].name = "abc"
teams[1].name = "xyz"
teams[0].squad.append("Joe")

for w in teams:
    print(w.name)
    print(w.squad)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abdulelah Al-Wainany