write a python program that receives a list l of numbers from the user
Write a Python program that receives a list L of numbers from the user. The program also receives an index i from the user. If the index iin the correct range of the list L, then the program prints the sum of all values from the beginning of the list until before the index i.Otherwise, the program prints 0. The program would only accept nonnegative indexes. For example, if the user enters the list 1 23 45and then the index i as 3. Your program should print 6. If the index was 7, the program should print 0. If the index was -1, the program prints0.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.