Yuvraj CS
Yuvraj CS
Yuvraj CS
Output:
2. Python script to input two numbers from the user and store these values in
two different variables
Output:
3. Script to Convert Seconds into hours, minute and seconds
Output:
Output:
6. Program to print the even elements using fucntion
Output:
7. To print number ending with 0 from a list
Output:
8. To print odd numbers from a list
Output:
9. Program to print the sum of 'n' natural numbers using recursion function
Output:
10. Program to print the sum of all the elements in the list using recursion
Output:
11. Program to print original list
Output:
Output:
13. Sum of first n terms of series:
Output:
14. Program to find the number of digits in a number:
Output:
SQL
Enter the database Rishabh
Enter the password for MySQL CHUTIYA#1
Enter the table name EMP
Successfully Connected to Database
1. Insert Record
2. Display Record
3. Search Record
4. Modify Record
5. Delete Recod
6. Exit
Enter the choice 1
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the EMPNO 120
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the EMPNAME "Rishabh Rawat"
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the DEPT "Computer"
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the DESIGN "Coder"
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the basic 100000
NOTE: Please enter string/varchar/date values (if any) in quotes
Enter the CITY "Srinagar"
Record successfully inserted
1. Insert Record
2. Display Record
3. Search Record
4. Modify Record
5. Delete Recod
6. Exit
Enter the choice 2
Enter the number of records to display 10
(111, 'Akash Narang', 'Account', 'Manager', 50000, 'Dehradun')
(112, 'Vijay Duneja', 'Sales', 'Clerk', 21000, 'lucknow')
(113, 'Kunal Bose', 'Computer', 'Programmer', 45000, 'Delhi')
(114, 'Ajay Rathor', 'Account', 'Clerk', 26000, 'Noida')
(115, 'Kiran Kukreja', 'Computer', 'Operator', 30000, 'Dehradun')
(116, 'Piyush Sony', 'Sales', 'Manager', 55000, 'Noida')
(117, 'Makrand Gupta', 'Account', 'Clerk', 16000, 'Delhi')
(118, 'Harish Makhija', 'Computer', 'Programmer', 34000, 'Noida')
(120, 'Rishabh Rawat', 'Computer', 'Coder', 100000, 'Srinagar')
1. Insert Record
2. Display Record
3. Search Record
4. Modify Record
5. Delete Recod
6. Exit
Enter the choice 3
Enter the column name using which you want to find the record EMPNO
Enter the EMPNO of that record 120
[(120, 'Rishabh Rawat', 'Computer', 'Coder', 100000, 'Srinagar')]
1. Insert Record
2. Display Record
3. Search Record
4. Modify Record
5. Delete Recod
6. Exit
Enter the choice 4
Enter the field name to modify basic
Enter the column name using which you want to find the record EMPNAME
Enter the EMPNAME of that record Rishabh Rawat
Enter the new basic 200000
Record sucessfully modified
1. Insert Record
2. Display Record
3. Search Record
4. Modify Record
5. Delete Recod
6. Exit
Enter the choice 5
Enter the column name using which you want to find the record
NOTE: NO TWO RECORDS SHOULD HAVE SAME VALUE FOR THIS
COLUMN: EMPNO
Enter the EMPNO of that record 120
Record successfully deleted
MySQL queries:
1. SELECT * FROM job;