0% found this document useful (0 votes)
2 views

Python Programs list

The document outlines a series of programming tasks in Python, including converting integers to different numeral systems, performing arithmetic operations, and demonstrating various operators. It also covers sequence types, command line arguments, array manipulations, Fibonacci series, sorting algorithms, and matrix operations. Each task is designed to enhance understanding of Python programming concepts and data structures.

Uploaded by

Pseudo09
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)
2 views

Python Programs list

The document outlines a series of programming tasks in Python, including converting integers to different numeral systems, performing arithmetic operations, and demonstrating various operators. It also covers sequence types, command line arguments, array manipulations, Fibonacci series, sorting algorithms, and matrix operations. Each task is designed to enhance understanding of Python programming concepts and data structures.

Uploaded by

Pseudo09
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/ 1

1.

WAP to convert an integer number to its equivalent binary, octal, decimal and
hexadecimal string.
2. WAP to read two integers and perform arithmetic operations on them.
3. WAP to read two integers and demonstrate the use of Assignment, Comparison, Logical
and Bitwise operators on them.
4. Write a Python program to demonstrate the use of all six built-in sequence types in
Python: list, tuple, string, range, bytes, and bytearray. The program should perform the
following operations:

A. Create a sequence of each type with sample values.


B. Demonstrate indexing by accessing specific elements from each sequence.
C. Perform slicing to extract a sub-sequence from each type.
D. Modify mutable sequences ( list and bytearray) and display the changes.

5. WAP to demonstrate Command Line Arguments in Python. Obtain two numbers using
command line and add them.
6. WAP to create an array: i) using array module and ii) using an already existing array
and print their elements.
7. WAP to display the Fibonacci series upto the nth term where n is provided by the user.
8. WAP to print the pattern using ‘*’ symbol to display i) a right angle triangle and ii) an
equilateral triangle of size 10.
9. WAP to find the GCD of two positive numbers.
10. WAP to find the sum of digits in a number and reverse the digits.
11. WAP to perform bubble sort and selection sort.
12. WAP to reverse the order of items in the array.
13. WAP to get the number of occurrences of specified element in an array.
14. WAP to insert newly created item before the second element in an existing array.
15. WAP to find out if a given array of integers contains any duplicate elements. Return
true if any value appears at least twice in the array, and return false if every element is
distinct.
16. WAP that removes all duplicate elements from an array and return a new array.
17. WAP to create a simple array using numpy using : i) array()ii) linspace()iii) logspace(),
iv) arrange, v) zeroes and ones() functions.
18. WAP to create a 3X3 matrix using nested list and print the elements of the matrix.
19. WAP to perform the addition of two matrices.
20. WAP to perform multiplication of two matrices.

You might also like