when i writ any code on this and click on compile and test it just shows compilation successful. I cannot see any output screen
Output screen of the code
Hello Rashmi, there was a small error in your code
you have written
sum = 0
while (sum > 0): # your code will never enter in this loop as sum is initialised to 0.
#So we need to make it sum >= 0 although it is ok if we get 0 sum as we don't need to print the no. when the sum becomes neg not the zero.
#So it will be while (sum >= 0):
And first of all you are summing up the no. then print then checking if the sum becomes neg or not. So this must not be the flow of the code as think of a case when the sum becomes neg you print that no. and after that checking so what will happen in this case is that we printed an extra no. that was contributing in neg sum. So we need to put a condition
if sum < 0:
break
So overall it will be like,
sum = 0
while (sum >= 0):
num=int(input())
sum=sum+num
if sum < 0:
break
print(num)
I hope it is clear to you. In case it is clear to you pls mark it as resolve and provide the rating as well as feedback so that we can improve ourselves.
In case there is still some confusion pls let me know, I will surely try to help you out.
Thanks 
Happy Coding !!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.