I was able to figure most of this one out but the end has something that i'm confused about. At the end where s = s[:n] + 'good' + s[b+3:] i'm confused what b+3 is?? I get that b references b but +3?? Here's the full code:--def not_bad(s):n = s.find('not')b = s.find('bad')if n != -1 and b != -1 and b > n:s = s[:n] + 'good' + s[b+3:]return s
You received this message because you are subscribed to the Google Groups "Python GCU Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-gcu-for...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-gcu-forum/da38653c-ff54-4b38-859c-279dd4fdfe09n%40googlegroups.com.