a sentence needs to contain 1 or more instances of 'a', exactly 1 instance of 'b' and 0 or more instances of 'c'
my expression is a+bc*
it works for strings like 'abc' 'ab' 'aabcc' which is all fine but it also works when i have multiple b's like 'abbc' which it shouldn't. How do i get it to work when theres only 1 'b'
Here is my full code
import re
qq = re.compile('a+bc*')
if qq.match('abb') is not None:
print("True")
else:
print('False')
which should produce False