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