+ 3
Write a program to take two integers as input and output their sum.
a = int(input()) b = int(input()) print(a+b) What's wrong with my code The error is File "/usercode/file0.py", line 2 a=int (input()) IndentationError: unexpected indent
4 ответов
+ 7
If your code is exactly as below,
a = int(input())
b = int(input())
print(a+b)
It doesn't have any errors. I guess you're adding some spaces or tabs by mistake. Recheck it. All the best =)
+ 6
Check accurately if all lines begin at first col of line.
before first line delete everything.
+ 5
Hi Tejas!
It seems your code is working fine.
Can you tell us what kind of error message you're receiving?
+ 1
Probably you’re not writing completely from the left side of the screen. Maybe you’re writing all with a space or a tab in front of every line