if str1[-1].isdigit():
count+=1
Sum += int(temp)
I cant understand this part of the problem and also please explain the problem fully if it is possible
it will the last character of a string if it is digit then it will increment the counter by 1
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment