Python Basics4 (functions,lambdafunction)


def sum(a=10,b=20) :
 add=a+b;
 return add;
print("sum is",sum())
f=lambda a,b:a+b
print(f(10,20))
f=open("sample.txt",'r')
a=f.readline(5)
f.close()
print(a)

Comments

Popular posts from this blog

Swayamvar Program In Python

VALDATION IN JAVASCRIPT