Python Forum
Where did this dictionary come from?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where did this dictionary come from?
#4
I do understand now why the first two arguments must be of equal length.

I still don't understand exactly what's wrong with my line 14.

Doesn't my use of two sets of double quotes for the first two arguments essentially map nothing onto nothing, which changes nothing?

Isn't the third argument, then, characters to be deleted from the string, which should be the set of 32 punctuation marks? Instead of deleting them, though, it is translating them into Unicode ordinals.

Are the double quotes being interpreted as nothing, leaving just one argument total (string.punctuation)?
Reply


Messages In This Thread
Where did this dictionary come from? - by Mark17 - Sep-23-2019, 03:47 PM
RE: Where did this dictionary come from? - by buran - Sep-23-2019, 04:13 PM
RE: Where did this dictionary come from? - by Mark17 - Sep-23-2019, 05:09 PM
RE: Where did this dictionary come from? - by buran - Sep-23-2019, 06:31 PM

Forum Jump:

User Panel Messages

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