Option D with the curly braces looks a bit strange to me. I thought Python didn't use curly braces for class definitions. Option B is the clear winner here.
Woah, option C with 'return' inside the class? That's definitely not going to work. The class body should be empty or contain some methods and attributes.
I think the answer is B) class X: pass because the pass statement is used as a placeholder for future code. It allows the class definition to be syntactically correct.
Polly
30 days agoFidelia
2 days agoWilbert
7 days agoLeonard
1 months agoNoah
9 days agoVi
15 days agoFabiola
2 months agoMichal
9 days agoMichal
28 days agoAlease
2 months agoJudy
2 months agoJoaquin
2 months agoCallie
2 months agoTimothy
2 months ago