color = 'yellow'
Computers and Technology, 10.12.2021 19:20 Katiecool290
Which line of code will have "navy rainbow" as an output?
class pencil:
color = 'yellow'
hardness = 2
class pencilCase:
def __init__(self, color, art):
self. color = color
self. art = art
def __str__(self):
return self. color + " " + self. art
# main program
pencilA = pencil()
print (caseA)
Answers: 3
Which line of code will have "navy rainbow" as an output?
class pencil:
color = 'yellow'
color = 'yellow'
Mathematics, 13.07.2019 23:00
Mathematics, 13.07.2019 23:00
History, 13.07.2019 23:00
Mathematics, 13.07.2019 23:00
History, 13.07.2019 23:00