Python Forum
I need Help in this problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need Help in this problem
#1
hello guys ,
actually I need some help to solve this problem by bython :

Assume s is a string of lower case characters.

Write a program that prints the number of times the string 'bob' occurs in s. For example, if s = 'azcbobobegghakl', then your program should print


but I need to solve this problem with for or while loops or both of them

I am a new learner of bython
and I've spent much time solving it but the output is always wrong

Reply


Messages In This Thread
I need Help in this problem - by Mostafa6687 - Oct-12-2017, 08:57 AM
RE: I need Help in this problem - by buran - Oct-12-2017, 08:58 AM
RE: I need Help in this problem - by gruntfutuk - Oct-12-2017, 04:51 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020