Once again, run a for loop with a range. Inside the loop, use the power of 2. Then add that power to a sum variable. That’s it. This one is super easy. You declared a variable sum with an initial ...
# input 2 numbers and print sum input1 = int (input ("Enter first number")) input2 = int (input ("Enter scond number")) sum = input1 + input2 print ("sum of the 2 values is", sum) # modify this ...