0% found this document useful (0 votes)
8 views1 page

List of Programs-20.09.22

The document lists a series of Python programming tasks, including matrix operations, string manipulations, and pattern printing. Each task outlines specific objectives, such as adding and multiplying matrices, counting character frequencies, and sorting hyphen-separated words. The document serves as a guide for practicing various Python programming concepts.

Uploaded by

ahenas04
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)
8 views1 page

List of Programs-20.09.22

The document lists a series of Python programming tasks, including matrix operations, string manipulations, and pattern printing. Each task outlines specific objectives, such as adding and multiplying matrices, counting character frequencies, and sorting hyphen-separated words. The document serves as a guide for practicing various Python programming concepts.

Uploaded by

ahenas04
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

LIST OF PROGRAMS

1. Write a python program to Add two Matrices


2. Write a python program to Multiply two Matrices
3. Write a python program to Transpose a given matrix
4. Python Programs to Print 1 and 0 in Alternative Columns
5. Python example to print Box Number Pattern of 1 and 0
6. Python Program to Print Right Triangle of 1 and 0
7. Python Program to Print Right Triangle of Numbers in Reverse
8. Python example to Print Square with Same Numbers on all Sides

9. Write a Python program to calculate the length of a string.

10. Write a Python script that takes input from the user and displays that input back in
upper and lower cases.
11. Write a Python program to count the number of characters (character frequency) in a
string.
Sample String : google.com'
Expected Result : {'g': 2, 'o': 3, 'l': 1, 'e': 1, '.': 1, 'c': 1, 'm': 1}
12. Write a Python program that accepts a hyphen-separated sequence of words as input
and prints the words in a hyphen-separated sequence after sorting them alphabetically.

Sample Items : green-red-yellow-black-white

Expected Result : black-green-red-white-yellow

13. Write a Python program to get a single string from two given strings, separated by a
space and swap the first two characters of each string. Go to the editor
Sample String : 'abc', 'xyz'
Expected Result : 'xyc abz'

You might also like