You aren't increasing i. The code creates an infinite loop. You are also requesting input many times, so be careful - SoloLearn requires all input to be entered BEFORE you run the code. Finally, I'd suggest you rename the first "input" variable. Never name your variables with a name of a method/function.
Shivam Rawal I made edits for all the needed fixes
Why this code gives no output
input = int(input())
input1 = int(input())
sum=sum + input1
You have to increase the value of i so that while loop at one point it ends and compiler goes to print function and runs that command,, you forgot to increase the value of i..