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

Python Printout

The document outlines a series of programming tasks in Python, including finding the largest of three numbers, counting vowels in a string, and displaying prime numbers. It also includes tasks related to string manipulation, dictionary operations, and demonstrating various operators. Additionally, it covers file handling, tuple creation, and built-in functions, indicating a comprehensive set of exercises for Python programming practice.
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)
5 views2 pages

Python Printout

The document outlines a series of programming tasks in Python, including finding the largest of three numbers, counting vowels in a string, and displaying prime numbers. It also includes tasks related to string manipulation, dictionary operations, and demonstrating various operators. Additionally, it covers file handling, tuple creation, and built-in functions, indicating a comprehensive set of exercises for Python programming practice.
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

[Link] a program to find the largest element among three Numbers.

[Link] a program to define a function with multiple return values.


[Link] a program to count the number of vowels in a string (No control flow allowed).

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


[Link] a program to find the length of the string without using any library functions.
[Link] a program to add a new key-value pair to an existing dictionary.

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


[Link] a program to perform the given operations on a list: Addition ii. Insertion iii.
Slicing.
[Link] a program to sort words in a file and put them in another file. The output file
should have only lower-case words, so any upper-case words from source must be
lowered.

[Link] the following Operators in Python with suitable examples. Arithmetic


Operators ii) Relational Operators iii) Assignment Operators iv) Logical Operators v) Bit
wise Operators vi) Ternary Operator vii) Membership Operators viii) Identity Operators.
[Link] a program to check if the substring is present in a given string or not.
[Link] a program to sum all the items in a given dictionary.

[Link] a program to add and multiply complex numbers.


[Link] a program to perform any 5 built-in functions by taking any list.
[Link] program to print each line of a file in reverse order.

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


[Link] a program to create tuples (name, age, address, college) for at least two
members and concatenate the tuples and print the concatenated tuples.
[Link] program to demonstrate use of ndim, shape, size, dtype.
[Link] a program to add and multiply complex numbers .

[Link] a program to perform any 5 built-in functions by taking any list.

You might also like