0% found this document useful (0 votes)
15 views3 pages

Python Practical Index

The document is an index of Python programming tasks and SQL commands, detailing various exercises such as calculating squares and cubes, finding the largest number among inputs, and performing file operations. It also includes tasks related to data structures like stacks and queues, as well as database operations using MySQL. Each task is numbered and accompanied by a brief description and page number.

Uploaded by

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

Python Practical Index

The document is an index of Python programming tasks and SQL commands, detailing various exercises such as calculating squares and cubes, finding the largest number among inputs, and performing file operations. It also includes tasks related to data structures like stacks and queues, as well as database operations using MySQL. Each task is numbered and accompanied by a brief description and page number.

Uploaded by

nishukumar720pp
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

INDEX

[Link] Aim Page No.

1 Write a python program to


take input for a number,
calculate and print its
square and cube

2 Write a python program to


take input for 2 numbers,
calculate and print their
sum, product, difference

3 Write a python program to


take input for 3 numbers,
check and print the largest
number

4 Write a python program to


take input of 2 numbers and
an operator (+, -, *, /). Based
on the operator calculate
and print the result

5 Write a python program to


take input for a number and
print its table

6 Write a python program to


take input for a number and
print its factorial

7 Write a python program to


take input for a number and
check if the entered number
is Armstrong or not

8 Write a python program to


take input for a number and
print its factorial using
recursion

9 Write a python program to


display Fibonacci sequence
using recursion

10 Write a python program to


read a file named
'[Link]', count and print
total alphabets in the file

11 Write a python program to


maintain book details like
book code, book title and
price using stacks data
structure (implement
push(), pop() and traverse()
functions)

12 Write a python program to


maintain employee details
like emp_id, name and
salary using queues data
structure (implement
insert(), delete() and
traverse() functions)

13 Write a python program to


read a file named
'[Link]', count and print
length of file, total
alphabets, upper case,
lower case, digits, spaces
and special characters

14 Write a python program to


read a file named
'[Link]', count and print
total words starting with 'a'
or 'A'

15 Write a python program to


read a file named
'[Link]', count and print
total lines starting with
vowels

16 Write a function to insert a


record in table using python
and MySQL

17 Write a function to display


all records stored in a table
using python and MySQL
interface

18 Write a function to search a


record stored in a table
using python and MySQL
interface

19 Create a student table of a


class that contains the
record of a student who
scored maximum marks in a
particular subject using
CREATE TABLE and INSERT
command in SQL

20 SQL ALTER TABLE

21 UPDATE query in SQL

22 ALTER TABLE RENAME


column

23 ALTER TABLE DROP


column

You might also like