when we run a python program the output will be seen in the
Answers
Answered by
1
Answer:
the out put is done using print()
Answered by
2
Answer:
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
Similar questions
Political Science,
2 months ago
Science,
2 months ago
Math,
2 months ago
Accountancy,
5 months ago
Math,
5 months ago
Math,
11 months ago
Physics,
11 months ago
Math,
11 months ago