Click here to Skip to main content
15,502,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
def solveMeFirst(a,b):
	# Hint: Type return a+b below


num1 = int(input())
num2 = int(input())
res = solveMeFirst(num1,num2)
print(res)


What I have tried:

i have tried to run it and it is showing this error
num1 = int(input())
       ^
IndentationError: expected an indented block

I am really a new beginner(NOOB) and my teacher gave me this problem to do. But he is really not helping me, please help in finding the problem in it.
Posted
Updated 2-Dec-20 2:24am

There is a pretty big clue in what your teacher gave you:
Python
# Hint: Type return a+b below

Literally all you have to do is remove the "# Hint: Type " and "below" bits and it'll work...

You are never going to pass this course unless you read carefully, and start thinking ... honest!
 
Share this answer
 
Comments
JAI_C 18-Jun-19 7:06am    
well, thank you so much.
OriginalGriff 18-Jun-19 7:12am    
You're welcome!
The solveMeFirst method is empty (a comment does not count as "code"). Therefore, Python's thinking is "there still has to be code" and the next code it notices, is not indented as per Python's indentation rules. So, put some code in the function. In fact, the comment tells you exactly what to do already:
Python
def solveMeFirst(a,b):
    return a+b
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900