163k views
25 votes
Benny is writing a program to design t-shirts. Which of the following correctly adds a new instance of style?

newStyle = "Style"
newStyle = Style()
newStyle: Style()
newStyle + Style()

User Poussma
by
3.9k points

1 Answer

4 votes
newStyle = Style()

This would work in Python

In JavaScript/TypeScript it is
newStyle = new Style()
User Rickimaru
by
4.8k points