Answer to Question #287815 in Python for Ajay Baburaj

Question #287815

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

1
Expert's answer
2022-01-17T00:34:24-0500

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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS