Computer Science, asked by saniyasan1230, 3 months ago

predict the output in python ​

Attachments:

Answers

Answered by shivdharmendragautam
1

Explanation:

Find output of Python programs - 1

  1. sum = 0 for i in range(12,2,-2): sum+=i print sum.
  2. n=50 i=5 s=0 while i<n: s+=i i+=10 print "i=",i print "sum=",s.
  3. List=[1,6,8,4,5] print List[-4:]
  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 IISLEEPINGBEAUTYII
1

your answer it helpful for you

Attachments:
Similar questions