+ All Categories
Home > Documents > Python Lab Outputs

Python Lab Outputs

Date post: 18-Dec-2021
Category:
Upload: others
View: 8 times
Download: 0 times
Share this document with a friend
29
Python Lab Outputs -PREPARED BY CHANDRU AND DEEPTHI
Transcript
Page 1: Python Lab Outputs

Python Lab Outputs -PREPARED BY CHANDRU AND DEEPTHI

Page 2: Python Lab Outputs

1a. To check palindrome with slicing

Page 3: Python Lab Outputs

1a.To check palindrome without slicing

Page 4: Python Lab Outputs

1a. To check palindrome without slicing

(another method)

Page 5: Python Lab Outputs

1a. Convert a string to camel case

Page 6: Python Lab Outputs

1a. Find the no of vowels & consonants

Page 7: Python Lab Outputs

1b. Validate a given date (output 1)

Page 8: Python Lab Outputs

1b. Validate a given date(output 2)

Page 9: Python Lab Outputs

1b. Validate a given date(output 3)

Page 10: Python Lab Outputs

2a.Finding Unique Characters in a given

string

Page 11: Python Lab Outputs

2b. Generate Pascal Triangle(output 1)

Page 12: Python Lab Outputs

2b. Generate Pascal Triangle(output 2)

Page 13: Python Lab Outputs

3a.Concatenating all given strings to a single

String

Page 14: Python Lab Outputs

3b. Creating a dictionary

Page 15: Python Lab Outputs

4a. Creating a file for each state

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

Page 16: Python Lab Outputs

4b. Functionality of histogram

Page 17: Python Lab Outputs

5a. To construct a Linked List

Page 18: Python Lab Outputs

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

Page 19: Python Lab Outputs

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

Page 20: Python Lab Outputs

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

Page 21: Python Lab Outputs

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

Page 22: Python Lab Outputs

6b. Creating a class to represent city

Page 23: Python Lab Outputs

7a. Regular Expressions

(‘details.txt’ is the input file)

Page 24: Python Lab Outputs

7a. Regular Expressions

Page 25: Python Lab Outputs

7b.Regular Expressions

Page 26: Python Lab Outputs

8a. Regular Expressions

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

Page 27: Python Lab Outputs

8b. Fibonacci Sequence(output 1)

Page 28: Python Lab Outputs

8b. Fibonacci Sequence(output 2)

Page 29: Python Lab Outputs

THANK YOU


Recommended