+ 1

x =int(input()) y =int(input()) print(x + y)

Indentation error coming help

30th Mar 2022, 3:27 AM
Shourya Pandey
Shourya Pandey - avatar
4 Answers
+ 5
You need to unindent second and third lines. x y print()
30th Mar 2022, 3:30 AM
Simba
Simba - avatar
+ 4
Indentation means the spaces from the left of screen. This is not indented. This is indented. Python uses indentation so you don't have to use curly braces {
30th Mar 2022, 4:10 AM
HungryTradie
HungryTradie - avatar
+ 2
when they ask for numbers to work with, you first enter the first number, then press enter and write the second one, and only then you start executing the program
30th Mar 2022, 7:49 PM
Zetfrick
Zetfrick - avatar
+ 2
Remove the space behind the y variable and print fuction. Thats an indentation error implying y and print is a code under x.
31st Mar 2022, 1:05 PM
Roland Ogbue
Roland Ogbue - avatar