33
A Guide to Python Lambda Functions
(adamj.eu)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Actually, now that I think of it, there's no reason you need to join the 2 names into a single
str. You could just leave it as atupleof last, first and Python will know what to do in comparing them.So the lambda would be returning
('Potter', 'Harry')rather than'Potter, Harry'. But whatever. The:=part is still the same.