[source code] Python Programming Tutorial - 40 - Lamdba

0 Bucky Roberts · October 24, 2014
# lambda <input>: <expression>

answer = lambda x: x*7
print(answer(5))

# useful for when you need a quick functions
# tkinter
# Button(text="Click Me", command=lambda: custom button functionality)

Post a Reply

Replies

Oldest  Newest  Rating
+2 W N · November 2, 2014
Hi Bucky,

Do you plan to make any Python Django tutorials for web development later? Thanks much. You do awesome work.:):silly::sick:
  • 1

Python

107,019 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator