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
2 months agoJesusita
12 days agoFidelia
18 days agoWilbert
23 days agoLeonard
2 months agoMaricela
3 days agoEmiko
9 days agoNoah
25 days agoVi
1 months agoFabiola
2 months agoMichal
25 days agoMichal
1 months agoAlease
2 months agoJudy
2 months agoJoaquin
2 months agoCallie
2 months agoTimothy
3 months ago