Skip to content

Latest commit

 

History

History

06-lambda-function-two

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
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).