Question: Using Python. loop through Nodes. player1 = Node(Player, name = Carlos Boozer, GamesPlayed = 71, Height = 202.5) player2 = Node(Player, name = Dwight Buycks,
Using Python.
loop through Nodes.
player1 = Node("Player", name = "Carlos Boozer", GamesPlayed = "71", Height = "202.5")
player2 = Node("Player", name = "Dwight Buycks", GamesPlayed = "6", Height = "187.5")
player3 = Node("Player", name = "Ed Davis", GamesPlayed = "79", Height = "205")
player4 = Node("Player", name = "Jabari Brown", GamesPlayed = "19", Height = "190")
player5 = Node("Player", name = "Jeremy Lin", GamesPlayed = "74", Height = "187.5")
player6 = Node("Player", name = "Jordan Clarkson", GamesPlayed = "59", Height = "192.5")
player7 = Node("Player", name = "Jordan Hill", GamesPlayed = "70", Height = "205")
player8 = Node("Player", name = "Julius Randle", GamesPlayed = "1", Height = "202.5")
I need a code of loops that can get a sum of height from 8 players.
And another loop that Player names whose game played >50, height > 200.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
