M.Sc AI Practical Assignment Solution 5
M.Sc AI Practical Assignment Solution 5 Question: Write a Python program to implement Water Jug Problem Code: Output: Path is as Follow: (0, 0) (2, 0) (2, 5) (0, 5) (2, 3) (0, 3)
M.Sc AI Practical Assignment Solution 5 Question: Write a Python program to implement Water Jug Problem Code: Output: Path is as Follow: (0, 0) (2, 0) (2, 5) (0, 5) (2, 3) (0, 3)
M.Sc AI Practical Assignment Solution 4 Question: Write a Python program to implement Breadth First Search Traversal. Code: Output: BFS Traversal: A B C D E F
M.Sc AI Practical Assignment Solution 3 Question: Write a Python program to Illustrate Different Set Operations. Code: Output: Union of set1 and set2: {1, 2, 3, 4, 5, 6, 7, 8} Intersection of set1 and set2: {4, 5} Difference of set1 and set2: {1, 2, 3} Symmetric difference of set1 and set2: {1, 2, 3, …
M.Sc AI Practical Assignment Solution 2 Question: Q2 Write a Python program to implement List Operations (Nested list, Length, Concatenation, Membership, Iteration, Indexing and Slicing), List Methods (Add, Append, Extend & Delete) Code: Output:
M.Sc AI Practical Assignment Solution 1 Question: Q1. Write a Python Program to, (a) Print Multiplication Table of a Number.(b) Check if given number is prime or not(c) Find factorial of the given no. Code: Output: Enter a number: 3 Multiplication Table: 3 x 1 = 3 3 x 2 = 6 3 x 3 …
Hey there! Are you ready to dive into the world of Python programming? Great choice! Python is a versatile and powerful language that can be used for a wide range of applications. Whether you’re a beginner or an experienced developer, this guide will walk you through the steps of installing Python on different operating systems. …
How to Install Python on Windows, Mac, and Linux Read More »
SE Computer Engineering Practical 20 solution Question: Write python program to store 10th class percentage of students in array. Write function for sorting array of floating point numbers in ascending order using radix sort and display top five scores Code: Output: Before Radix Sort: [89.5, 56.0, 85.75, 76.2, 93.5, 87.8, 60.25, 48.0, 94.1, 80.9] After …
SE Computer Engineering Practical 19 solution Question: Write a python program to store names and mobile numbers of your friends in sorted order on names. Search your friend from list using Fibonacci search. Insert friend if not present in phonebook Code: Output: Enter the details of your friends: Name (or ‘exit’ to stop): Vatsal Mobile …
SE Computer Engineering Practical 18 solution Question: Write a python program to store names and mobile numbers of your friends in sorted order on names. Search your friend from list using binary search (recursive and nonrecursive). Insert friend if not present in phonebook Code: Output: Enter the details of your friends: Name (or ‘exit’ to …
SE Computer Engineering Practical 17 solution Question: Write a python program for sparse matrix realization and operations on it- Transpose, Fast Transpose and addition of two matrices Code: Output: Transpose of sparse_matrix1: [0, 0, 1] [1, 1, 2] [3, 2, 3] Fast Transpose of sparse_matrix2: [0, 2, 6] [1, 0, 4] [2, 1, 5] Addition …