Professional Documents
Culture Documents
Fatima Jinnah Women University
Fatima Jinnah Women University
Submitted to:
Sir Adeel Khalid
Submitted by:
Misbah Nazeer Gondal
Registration Number:
2018-BCS-076
Lab 06
Task
Understand water jug problem
Implement the program using java, C#, CLISP or pyton
Use any IDE
Implementation in Python:
# This function is used to initialize the
# dictionary elements with a default value.
from collections import defaultdict
Output: