Answers for "python decisions and loops"

0

python loop

#loop
a=[1,2, 3, 4, 5, 6]
sum=0
for val in a :
    sum=sum+val
    print("the sum is", sum)
Posted by: Guest on January-25-2022
1

how to make a loop in python

x = 0
while True: #execute forever
	x = x + 1
	print(x)
Posted by: Guest on November-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language