What\'s New in Python 3.9

(kamelia khammar) #1

Now I will paste here an example where you want to
delete the latest character of each of the list of rules.
So we have this list here and you can see that I stored
the characters as a suffix variable. Now, this is not a
convention or something because I just thought that it
makes sense to call it suffix. And then I go and iterate
over my plurals and then I check for NS wit. And then I
put here as argument the suffix itself. And again, I'm
replacing this with nothing. So if I print that out, the
result is quite great. But here you can go ahead and
change this into remove suffix. And then as the
argument for sure, you will provide the letter which is
stored inside the suffix variable.

Free download pdf