Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: sorted function example mystery
Post: RE: sorted function example mystery

Thanks guys. I'm studying Python by working through coding problems from codewars.com It's a good site as there are many code examples of the same problem to look at.
sabaidii2 General Coding Help 4 2,482 Feb-10-2020, 09:05 AM
    Thread: sorted function example mystery
Post: sorted function example mystery

The following code works, but I don't know why (I'm using python v 3.7.3) print(f'{"".join(sorted("foo", key="of".index))}')It correctly prints oof I don't understand: key="of".index
sabaidii2 General Coding Help 4 2,482 Feb-10-2020, 02:23 AM

User Panel Messages

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