C4_W3, regarding pretty_decode()

When we perform pretty_decode() on the encoded_str = ‘Beginners BBQ…’
‘Beginners’ is replaced with ‘’, but when i printed the sentinels dictionary as you can see below, none of the keys in it match the ‘Begginers’, even then the replacement occurs, why

This is what I got using pretty_decode(). No replacement of Beginners, as one would expect given the dictionary of sentinels.

Did you mean something else?

Yeah this is weird, when i ran it i got replacement for ‘Beginners’

1 Like