Skip to content

Latest commit

 

History

History
executable file
·
24 lines (15 loc) · 517 Bytes

File metadata and controls

executable file
·
24 lines (15 loc) · 517 Bytes
tutorial

06 Lambda Functions

☝ Remember:

Lambda functions allow a short syntax for writing function expressions.

multiply = lambda x, y: x * y
print(multiply(2,2))

📝 Instructions:

  1. Create a lambda function called rapid, which will take one string parameter.

  2. Return the same string with the last letter removed.

💡 Hint:

  • Google "how to remove last letter from string python" (you can use the square brackets).