Click here to Skip to main content
15,069,020 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)

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.
Updated 2-Dec-20 1:24am

There is a pretty big clue in what your teacher gave you:
# 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!
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:
def solveMeFirst(a,b):
    return a+b

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