0% found this document useful (0 votes)
6 views45 pages

Harrshuhh 2

Uploaded by

harshuubelal007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views45 pages

Harrshuhh 2

Uploaded by

harshuubelal007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

THE INPUT METHOD

Write a program to find simple interest.


PROGRAM - OUTPUT-
Write a program to input two numbers and
swap them.

PROGRAM- OUTPUT-
 The If, Else, Elif function.
 The if function-
Write a program to enter two number and find the largest
number

PROGRAM - OUTPUT -
 The else function
Write a program to find even and odd numbers
PROGRAM - OUTPUT-

Write a program to find leap year


PROGRAM - OUTPUT –
 The Elif function
Write a program that read two numbers and an arithmetic operator and
display the result
PROGRAM – OUTPUT –
The Range Function –
Write a program to enter the table of 5
PROGRAM- OUTPUT-

Write a program to illustrate the nested loop


PROGRAM- OUTPUT-

Write a program to display fabunic series


PROGRAM- OUTPUT
Operators
EXAMPLES-
PROGRAM- OUTPUT-
IDENTITY OPERATOR

EXAMPLE-

PROGRAM- OUTPUT-
LIST

MANIPULATION
List () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT


The Index () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Append () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Extend () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Insert () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Pop () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Remove () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Reverse () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


The Sort () Method-
EXAMPLES-
[1.] PROGRAM- OUTPUT-

[2.] PROGRAM- OUTPUT-


MYSQL QUERIES
Write a query to create a table.
Write a query to describe a table.
Write a query to insert values in the table.
Write a query to show all the records from the
table.
Write a query to show specific records from
the table employee.
Write a query to add a new column.
Write a query to delete any record from the
table.
Write a query to delete any column from the
table.
Write a query to modify column properties in
a table.
Write a query to rename a column in the
table.
Scalar expression with selected fields
Write a query to update a record where
salary=50000.
RELATIONAL OPERAT0R
Write a query to show the records of the
employee whose salary >20000.
Write a query to show the records of the employee whose
salary is between 20000-50000
Write a query to show the name of the employee starting
from s.

Write a query to show the name of the employee ending at


h
SORTING
Write a query to show the name of the employee in
arranging order.
Write a query to show the salary in descending order.
Python Programs
Write a program to create marksheet

Program: output:
Write a program to enter two no. calculate it sum, multiplication
and division
Program Output
Write a program to find simple interest.

Program: Output:
Write a program to calculate area of rectangle.
Program: Output:

Write a program to input a no. and print its cube.


Program: Output:
Write a program to input two no. and swap
them as
Program: Output:
Write a program to input three no. and swap them as
st nd
1 no becomes the 2 no
2nd no becomes the 3rd no
3rd no becomes the 1st no
Program Output:
Write a program that accept marks in 5 subject and output
average marks.
Program:

Output:
THE END

You might also like