My issue
help
My code
# Count how many 'o's are present in the string using a 'for' loop and 'if' condition
string = 'bolloon'
# Initialize a variable to store the count
count_of_o = 0
for char in string:
if char == 'o':
count_of_o += 1
print("Count of 'o's:", count_of_o)
Learning course: Python with Data structures
Problem Link: CodeChef: Practical coding for everyone