Create a CSV file by entering user-id and password, read and search the password for given userid

Create a CSV file by entering user-id and password, read and search the password for given userid # Python Program   import csv with open(“user_info.csv”, “w”) as obj: fileobj = csv.writer(obj) fileobj.writerow([“User Id”, “password”]) while(True): user_id = input(“enter id: “) password = input(“enter password: “) record = [user_id, password] fileobj.writerow(record) x = input(“press Y/y to … Read more

Implement a stack using list Python Program for Class 11

Implement a stack using list Python Program   #Python Program to implement stack, Stack operation (PUSH, POP, DISPLAY) stack=[] choice=”y” while (choice==”y”): print(“1.Push”) print(“2.Pop”) print(“3.Show”) your_choice=int(input(“Enter your choice”)) if (your_choice==1): num=input(“Input any number”) stack.append(num) elif(your_choice==2): if (stack==[]): print(“Stack is empty”) else: print(“The deleted element is:”,stack.pop()) elif (your_choice==3): l=len(stack) for i in range(l-1,-1,-1): print(stack[i]) else: print(“Wrong … Read more

Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75.

Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75.   Program no_of_std = int(input(“Enter number of students: “)) result = {} for i in range(no_of_std): print(“Enter Details of student No.”, i+1) roll_no = int(input(“Roll No: “)) … Read more

Computer Networking Terms Full Forms for Class 12

Computer Networking Terms Full Forms   Sr.No. Acronym Definition 1 ACL Access Control List 2 AM Amplitude Modulation 3 ARP Address Resolution Protocol 4 ARPANET Advanced Research Projects Agency Network 5 BGP Border Gateway Protocol 6 CDMA Code Division Multiple Access 7 CSMA/CA Carrier Sense Multiple Access/Collision Avoidance 8 CSMA/CD Carrier Sense Multiple Access/Collision Detection … Read more

error: Content is protected !!