Answers for "* for in for example in python"

0

for loop in python

data = [34,56,78,23]
sum = 0
# for loop is to iterate and do same operation again an again
# "in" is identity operator which is used to check weather data is present or not
for i in data:
  sum +=i
  
print(sum)
Posted by: Guest on December-09-2020
0

for in pthon

num_list = range(10)

for num in list:
	print(num)
Posted by: Guest on January-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language