GithubHelp home page GithubHelp logo

itxsaaad / labs-ai-dc-324-3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.88 MB

Lab Solutions for Artificial Intelligence Course DC-324-3 at Uni

License: MIT License

Python 100.00%
artificial-intelligence lab-exercise python

labs-ai-dc-324-3's Introduction

Lab Solutions for the course "Artificial Intelligence" at the University of the Punjab, Lahore. - DC-324-3

Lab 1: Introduction to Python - Understanding the Basics - Part 1

  • Task 1: Print Function
  • Task 2: Input Function with Variables
  • Task 3: Print in Multiple Lines
  • Task 4: if-else Statement
  • Task 5: Data Types - Integers, Floats
  • Task 6: Data Types - Boolean
  • Task 7: Data Types - Strings
  • Task 8: Data Types - Escape Sequences
  • Task 9: Data Types - String as Array of Characters
  • Task 10: Data Types - Lists
  • Task 11: Data Types - List Slicing

Lab 2: Introduction to Python - Understanding the Basics - Part 2

  • Task 1: Iterative Statements - While loop
  • Task 2: Iterative Statements - While loop in single line
  • Task 3: Iterative Statements - For in loop over a list, tuple, string
  • Task 4: Iterative Statements - For in loop by index of sequences
  • Task 5: Loop Control Statements - Continue
  • Task 6: Loop Control Statements - Break
  • Task 7: Functions - Defining a function
  • Task 8: Functions - Calling a function
  • Task 9: Functions - Function with arguments
  • Task 10: Functions - Function with list as argument
  • Task 11: Functions - Function with return value
  • Task 12: Functions - Function with keyword arguments
  • Task 13: Classes - Defining a class
  • Task 14: Classes - Creating an object of a class
  • Task 15: Classes - Class with constructor/initializer
  • Task 16: Classes - Class with methods

Lab 3: Introduction to Python - Building Logic

  • Task 1: Find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700 (both included).
  • Task 2: Convert temperatures to and from Celsius, Fahrenheit.
  • Task 3: Guess a number game 1 to 9.
  • Task 4: Print Asterisk pattern.
  • Task 5: Reverse a word.
  • Task 6: Count even and odd numbers in a list.
  • Task 7: Print type of elements in a list.
  • Task 8: Print All numbers from 0 to 6 except 3 and 6.
  • Task 9: Get the Fibonacci series between 0 to 50.
  • Task 10: Print text for mutiples of 3, 5, 3 and 5.
  • Task 11: Create Two dimentional array.
  • Task 12: Input sequence of lines and terminate on empty line with output in lower case.
  • Task 13: Accepting a sequence of comma-separated binary numbers from console and check if they are divisible by 5.
  • Task 14: Accept a String and calculate the number of digits and letters.
  • Task 15: Check the validity of password input by the user.

Lab 4: Data Structures - Stack, Queue, Binary Search

  • Task 1: Implement Stack using Class
  • Task 2: Implement Queue using Class
  • Task 3: Implement Binary Search/Half-Interval Search Algorithm

Lab 5: Searching Algorithms - Breadth First Search

  • Task 1: Implement Breadth First Search Algorithm
  • Task 2: Implement Breadth First Search Algorithm Using Queue on a Graph
  • Task 3: Implement Priority Queue using Heap

Lab 6: Searching Algorithms - Depth First Search

  • Task 1: Implement Depth First Search Algorithm
  • Task 2: Implement Depth First Search Algorithm Using Stack on a Graph

labs-ai-dc-324-3's People

Contributors

itxsaaad avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.