Social Icons

Monday, 31 May 2021

Lambda function || python

 print("Hello")


def myfunc(n):


        return lambda a,b:a*n+b



x=myfunc(3)



print(x(5,4))


Saturday, 29 May 2021

Python Program || File Handling

f1=open("new.txt","r")

f2=open("jk.txt","w")

y=[]

for x in f1.readlines():

        y.append(x)

        f2.write(x)




f2.close()

f1.close()


print(y)


 

Sample Text

Sample text

 
Just Programming Cse DriveReputation Management