Hospital Management System Python Project Class 12

Hospital Management System Python Project Class 12   Software requirements Operating system : windows 10 Python 3 : for execution of program Mysql : for storing data in the database Python – mysql connector : for database connectivity     ##hospital management software @cbsepython.in ##PRINTING WELCOME NOTE while(True): print(“”” ================================ WELCOME TO MYHOSPITAL ================================ “””) … Read more

ATM Management Python Project for Class 12

ATM Management Python Project for Class 12     #!/usr/bin/python #cbsepython.in import getpass import string import os # creating a lists of users, their PINs and bank statements users = [‘jitendra’, ‘sunny’, ‘vivek’] pins = [‘1111’, ‘2222’, ‘3333’] amounts = [1000, 2000, 3000] count = 0 # while loop checks existance of the enterd username … Read more

Solved Computer Science Sample Paper Term 2 Class 12

Computer Science Sample Paper Term 2 Class 12 Sample Question Paper COMPUTER SCIENCE (Code: 083) Maximum Marks: 35 /Time: 2 hours   General Instructions *  The question paper is divided into 3 sections – A, B and C * Section A, consists of 7 questions (1-7). Each question carries 2 marks. * Section B, consists … Read more

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

Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program

Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program   # Program to input number list and swapping odd and even index elements    # Entering 5 element Lsit mylist = [] print(“Enter 5 elements for the list: “) for i in range(5): … 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

Input three numbers and display the largest/smallest number Python Program

Input three numbers and display the largest/smallest number Python Program # Python Program to input 3 numbers and display the largest number   #input first,Second and third number num1=int(input(“Enter First Number”)) num2=int(input(“Enter Second Number”)) num3=int(input(“Enter Third Number”)) #Check if first number is greater than rest of the two numbers. if (num1> num2 and num1> num3): … Read more

Copywrite © 2020-2026, CBSE Python,
All Rights Reserved