predict the output in python
Attachments:
Answers
Answered by
1
Explanation:
Find output of Python programs - 1
- sum = 0 for i in range(12,2,-2): sum+=i print sum.
- n=50 i=5 s=0 while i<n: s+=i i+=10 print "i=",i print "sum=",s.
- List=[1,6,8,4,5] print List[-4:]
- L=[100,200,300,400,500] L1=L[2:4] print L1 L2=L[1:5] print L2 L2. extend(L1) print L2.
Answered by
1
your answer it helpful for you
Attachments:
Similar questions