● Create a new file called while.py
● Write a program that always asks the user to enter a number. ● When the user enters the negative number -1, the program should stop requesting the user to enter a number,
It is unusual to have such kind of questions here but I will give you an answer, write this in your new file and execute it with python3 while.py
sum = 0
i = 0
n = int(input(...