0% found this document useful (0 votes)
2 views2 pages

PPQP

The document outlines a series of programming tasks in Python, including finding the largest number among three, displaying prime numbers, and swapping numbers without a temporary variable. It also covers various operators, string manipulation, list operations, tuple creation, and file handling. Additionally, it includes tasks related to JSON, NumPy arrays, and basic array operations.
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)
2 views2 pages

PPQP

The document outlines a series of programming tasks in Python, including finding the largest number among three, displaying prime numbers, and swapping numbers without a temporary variable. It also covers various operators, string manipulation, list operations, tuple creation, and file handling. Additionally, it includes tasks related to JSON, NumPy arrays, and basic array operations.
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
You are on page 1/ 2

1. Write a program to find the largest element among three Numbers.

2. Write a Program to display all prime numbers within an interval

3. Write a program to swap two numbers without using a temporary variable.


4. Demonstrate the following Operators in Python with suitable examples.
i. Arithmetic Operators ii) Relational Operators

5. Demonstrate the following Operators in Python with suitable examples.


i) Assignment Operators ii) Logical Operators iii) Bit wise Operators i v )
Ternary Operator v) Membership Operators vi) Identity Operators

6. Write a program to add and multiply complex numbers


7. Write a program to print multiplication table of a given number.

8. Write a program to define a function with multiple return values.

9. Write a program to define a function using default arguments.


10. Write a program to find the length of the string without using any library functions.
11. Write a program to check if the substring is present in a given string or not.

12. Write a program to perform the given operations on a list:


i. addition ii. Insertion iii. Slicing
13. Write a program to perform any 5 built-in functions by taking any list.

14. Write a program to create tuples (name, age, address, college) for at least two
members and concatenate the tuples and print the concatenated tuples.
15. Write a program to count the number of vowels in a string (No control flow allowed).

16. Write a program to check if a given key exists in a dictionary or not.

17. Write a program to add a new key-value pair to an existing dictionary.


18. Python program to print each line of a file in reverse order.

19. Python program to compute the number of characters, words and lines in a file.

20. Write a program to create, display, append, insert and reverse the order of the
items in the array.

21. Python program to check whether a JSON string contains complex object or not.

22. Python Program to demonstrate NumPy arrays creation using array () function.

23. Python program to demonstrate use of ndim, shape, size, dtype.

24. Python program to demonstrate basic slicing, integer and Boolean indexing.

25. Python program to find min, max, sum, cumulative sum of array

You might also like