Pop quiz on lambda functions
In this exercise, you will practice writing a simple lambda function and calling this function. Recall what you know about lambda functions and answer the following questions:
- How would you write a lambda function
add_bangsthat adds three exclamation points'!!!'to the end of a stringa? - How would you call
add_bangswith the argument'hello'?
You may use the IPython shell to test your code.
Bu egzersiz
Introduction to Functions in Python
kursunun bir parçasıdırUygulamalı interaktif egzersiz
İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün
Egzersizi başlat