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.
Leonard
4 days agoFabiola
10 days agoAlease
13 days agoJudy
14 days agoJoaquin
21 days agoCallie
22 days agoTimothy
25 days ago