0% found this document useful (0 votes)
3 views6 pages

Pattern and Chart Programming Guide

The document outlines various pattern programs including star patterns, number sequences, and string manipulations. It also mentions different types of charts that can be created using Matplotlib, such as line graphs, bar charts, histograms, scatter plots, and pie charts. Additionally, it includes an example of calculating the length of the largest word in a string.

Uploaded by

srikanthgnaidu
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)
3 views6 pages

Pattern and Chart Programming Guide

The document outlines various pattern programs including star patterns, number sequences, and string manipulations. It also mentions different types of charts that can be created using Matplotlib, such as line graphs, bar charts, histograms, scatter plots, and pie charts. Additionally, it includes an example of calculating the length of the largest word in a string.

Uploaded by

srikanthgnaidu
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

PATTERN PROGRAMS:

1.
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

2.
*
**
***
****
*****

3.
11111
22222
33333
44444
55555
4.
1
22
333
4444
55555

5.
1
12
123
1234
12345

6.
*
**
***
****
*****
7.
1
21
321
4321
54321

MATPLOTLIB CHARTS:

1. Line Graph - in textbook.


2. Bar Chart:
Code:

Output:
3. Histogram:
Code:

Output:

4. Scatter Plot
Code:

Output:
5. Pie Chart:
Code:

Output:
SERIES PROGRAMS:

1.

2.

STRING PROGRAM:
1. Length of largest word in a string:
Example:
Input: This is an example
Output:7

You might also like