In next video I'll tell you better solution
NumPy | NumPy in Python Tutorial | Mr. Srinivas
Python for Beginners - Learn Python in 1 Hour
Mastering Python - Everything You Need To Know To Become a Python Master
Sum of Numbers Program using while loop : Python tutorial 51
Most Advance Python Course for Professionals [2021]