- Get link
- X
- Other Apps
Labels:
ail
aip
aip science
art
art integrated learning
art integrated project
raj
raj rishi
rajrish5541f
science
- Get link
- X
- Other Apps
Welcome to the world of space science, computer science, geography, geopolitics and many more topics. You will love our blogs and definitely like them. We post knowledgeful and helpful content, the content which fascinates the eyes of the emerging scientific era.
Very informative but not helpful☹
ReplyDeleteimport csv
Deletef1 = open('data.csv', 'w', newline='')00
def writepass():
wo = csv.writer(f1)
for i in range(3):
uid= input('enter id:')
passs = input('pass:')
wo.writerow([uid, passs])
f1.close()
def readpass():
f1=open("data.csv","r")
a= csv.reader(f1)
found=0
newlist=[]
x=input("enter the password to be updated")
for i in a:
if i[0]==x:
print(i)
i[1]=input("Enter new password")
print("new password",i)
found=1
newlist.append(i)
if found ==0:
print('not found')
else:
f1=open('data.csv', 'w',newline='')
wo = csv.writer(f1)
wo.writerows(newlist)
f1.close()
writepass()
readpass()