Python Lab Outputs

Post on 18-Dec-2021

8 views 0 download

transcript

Python Lab Outputs -PREPARED BY CHANDRU AND DEEPTHI

1a. To check palindrome with slicing

1a.To check palindrome without slicing

1a. To check palindrome without slicing

(another method)

1a. Convert a string to camel case

1a. Find the no of vowels & consonants

1b. Validate a given date (output 1)

1b. Validate a given date(output 2)

1b. Validate a given date(output 3)

2a.Finding Unique Characters in a given

string

2b. Generate Pascal Triangle(output 1)

2b. Generate Pascal Triangle(output 2)

3a.Concatenating all given strings to a single

String

3b. Creating a dictionary

4a. Creating a file for each state

(‘stateinfo.txt’ is the input file) (New files will be created i.e Karnataka & Delhi)

4b. Functionality of histogram

5a. To construct a Linked List

5b. Traverse a given path (output 1 & 2)

6a. Creating a class called My Stack (output 1)

6a. Creating a class called My Stack (output 2)

6a. Creating a class called My Stack (output 3)

6b. Creating a class to represent city

7a. Regular Expressions

(‘details.txt’ is the input file)

7a. Regular Expressions

7b.Regular Expressions

8a. Regular Expressions

(‘sample.txt’ is the input file) (New file will be created i.e converted.txt)

8b. Fibonacci Sequence(output 1)

8b. Fibonacci Sequence(output 2)

THANK YOU