From 991d8f53fff8a6fa78441875d55b5818c6179707 Mon Sep 17 00:00:00 2001 From: Narayan-Dhingra <56204282+Narayan-Dhingra@users.noreply.github.com> Date: Sun, 6 Oct 2019 01:17:36 +0530 Subject: [PATCH] lambda functions --- hello.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hello.py b/hello.py index dbe70bd..8bd7861 100644 --- a/hello.py +++ b/hello.py @@ -1,2 +1,15 @@ print("hello world") +#here you got with lambda functions +#!/usr/bin/python3 + + +def table(n): + return lambda a: a*n + +n = int(input("Enter number:")) + +b = table(n) + +for i in range(0,11): + print(n,"X",i, "=", b(i)) # please be more elaborative