Docsity

python codes lab work, Exercises of Computer science

Partial preview of the text

Download python codes lab work and more Exercises Computer science in PDF only on Docsity!

LAB 01

Q 1 ) Take input as String And Reverse String. List Output:

Q 2 ) Write A Python code to implement Dictionary. Dictionary Output:

LAB 0 2

Q 1 ) Write Program That Counts String. Count String Output:

Q 2 ) Implement Depth First Search. DFS Output:

BFS Output:

Q 4 ) Pacman Game (Home Assignment).

LAB 0 3

Q 1 ) Implementing the Transportation Problem. Transportation Output:

LAB 0 4

Q 1 ) Implementing the A* Search Program.

A* Search Output:

A* Search Graph: