Problem Solving


#1

a=input(“First no:”)
b=input(“Second no:”)
c=add(a,b)
print “Total of {} and {} is = {}”.format(a,b,c)

def add(x,y):
q = x+y
return q

It shows me an Indentation error : Can anybody please solve it?


#2

if you have an indent issue, you should post your code with format:

How do I format code in my posts?

otherwise the indent doesn’t show, and we can’t fix the issue


#3

Can you please help me in this program here?


#4

if you post your code properly with format so i can see and fix the indent(ion), yea, sure.

look at your code:

image

the indent doesn’t show on the forum given no format was used. Please acknowledge my reply at least