How to take input in a list

why my code not taking input

Hello, you need to take the input again and again as an integer using an infinite while loop and break that when the sum becomes negative.
This will surely work pls try this out. Incase some difficulty is there you can ask me I will surely help you out.
Thanks :slight_smile:
Happy Coding !!