Final Ip File Work
Final Ip File Work
1.
INDEX
Write a code to create a Series object using the Python sequence 3
[4,6,8,10]
2. Write a code to create a Series object using the Python sequence 3
(11,21,31,41)
3. Write a program to create a Series object using individual characters 3
'o','h','o'.
4. Write a program to create a Series object using a string: 'So funny'. 3
5. Write a program to create a Series object using three different words: 3
'I','am','laughing'.
6. Write a program to create a Series object using an ndarray that has 5 3
elements in the range 24 to 64.
7. Write a program to create a Series object using an ndarray that is 4
created by tiling a list [3,5], twice).
8. Write a program to create a Series object using a dictionary that stores 4
the number of students in each section of class 12 in your school.
9. Write a program to create a Series object that stores the initial budget 4
allocated (50000/- each) for the four quarters of the year: Qtr1,Qtr2,
Qtr3, Qtr4.
10. Total number of medals to be won is 200 in the Inter University 4
games held every alternate year. Write code to create a Series object
that stores these medals for games to be held in the decade 2020-
2029.
11. A Python list namely 'section' stores the section names ('A','B','C',D') 4
of class 12 in your school. Another list 'contri' stores the contribution
made by these students to a charity fund endorsed by the school.
Write code to create a Series object that stores the contribution
amount as the values and the section names as the indexes.
12. Sequences 'section' and 'contri' store the section names 5
('A','B','C','D','E') and contribution made by them respectively
(6700,5600,5000,5200, nil) for a charity. Your school has decided to
donate as much contribution made by each section, i.e, the donation
will be doubled.
13. Consider the two series object 's11' and 's12' that you created in 5
examples 11 and 12 respectively. Print the attributes of both these
objects in a report form as shown below:
14. Given a table Library: 6
(i) SELECT UPPER(Title) FROM Library WHERE Price<150;
(ii) SELECT CONCAT (Author, Type) FROM Library where
Qty<3;
(iii)SELECT MOD(Qty,4) FROM Library;
15. Write SQL queries which will perform the following operations: 7
(i) To display the year from your Date of Admission which is
‘2023-05-15’
(ii) To convert your email id ‘[email protected]’ to lowercase.
(iii) To remove leading spaces from a string ‘my country’
2
Practical 1
Practical 2
Practical 3
Practical 4
Practical 5
Practical 6
4
Practical 7
Practical 8
Practical 9
Practical 10
Practical 11
5
Practical 12
Practical 13
6
Practical 14
(i)
(ii)
(iii)
7
Practical 15
(i)
(ii)
(iii)
(iv) (v)
8
Practical 16
(I)
(II)
(III)
9
Practical 17
(i)
(ii)
(iii)
10
Practical 18
(i)
(ii)
(Invalid query)
(iii)
(iv)
11
Practical 19
(i)
(ii)
(iii)
(iv)
12
Practical 20
(a)
(b)
(c)
(d)
(e)
13
Practical 21
(i)
(ii)
14
(iii)
(v)
Practical 22
15
(i)
(ii)
(iii)
(iv)
16
Practical 23
(i)
(ii)
17
(iii)
(iv)