Question #270551

class Option:


def __init__(self):


self._firstnum = 0


Question:


1. what is the error in this code?


Expert's answer

When you run this code:

class Option:




  def __init__(self):
  
  
  
  
  self._firstnum = 0

The output will be:

IndentationError: expected an indented block


Correct solution will be:

class Option:




  def __init__(self):
  
  
  
  
    self._firstnum = 0

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS