number = input()
count = 0
for digit in number:
if digit == "1":
count += 1
print(count)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = input()
count = 0
for digit in number:
if digit == "1":
count += 1
print(count)