Find and write output of folowng pyoton codes
List= ("p",20,"R",10,"S",30)
Times=0
Alpha=""
Sum=0
for i in range (1,6,2)
Times =Times +I
Alpha=Alpha +List(I-1) + "#"
Sum=Sum + List(I)
print(Times,Sum,Alpha)
Answers
Answered by
4
1 20 p#
4 30 p#R#
9 60 p#R#S#
Similar questions