machine learning report including usin linear classification model with python coding, Lab Reports of Machine Learning

Model traning ang guessing on the basis of regression and using linear classification model..

Typology: Lab Reports

2025/2026

Uploaded on 04/14/2026

zakoota-raj
zakoota-raj 🇸🇬

5 documents

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Course Instructor: Dr. Waqar Ahmad
University of engineering
and technology taxila
Lab 1
(ML & AI)
Name: Hajra Wajid
Reg. No: 23-CP-60
Section: Omega
Course title: Machine Learning & Artificial Intelligence
Lab Instructor: Eng. Shahid Ali Bhutta
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download machine learning report including usin linear classification model with python coding and more Lab Reports Machine Learning in PDF only on Docsity!

University of engineering

and technology taxila

Lab 1

(ML & AI)

Name: Hajra Wajid

Reg. No: 23 - CP- 60

Section: Omega

Course title: Machine Learning & Artificial Intelligence

Lab Instructor: Eng. Shahid Ali Bhutta

Challenges

Ask for the user’s first name and display the output message Hello [First Name]. Code: 002 Ask for the user’s first name and then ask for their surname and display the output message Hello [First Name] [Surname]. Code: 003 Write code that will display the joke “What do you call a bear with no teeth?” and on the next line display the answer “A gummy bear!” Try to create it using only one line of code. 004 Ask the user to enter two numbers. Add them together and display the answer as The total is [answer]. Code: 004 Ask the user to enter two numbers. Add them together and display the answer as The total is [answer]. Code:

Write a program that will ask for a number of days and then will show how many hours, minutes and seconds are in that number of days. Code: 010 There are 2,204 pounds in a kilogram. Ask the user to enter a weight in kilograms and convert it to pounds. Code: 011 Task the user to enter a number over 100 and then enter a number under 10 and tell them how many times the smaller number goes into the larger number in a user-friendly format. Code:

Ask for two numbers. If the first one is larger than the second, display the second number first and then the first number, otherwise show the first number first and then the second. Code: 013 Ask the user to enter a number that is under 20. If they enter a number that is 20 or more, display the message “Too high”, otherwise display “Thank you”. Code: 014 Ask the user to enter a number between 10 and 20 (inclusive). If they enter a number within this range, display the message “Thank you”, otherwise display the message “Incorrect answer”. Code:

Ask the user to enter a number. If it is under 10, display the message “Too low”, if their number is between 10 and 20, display “Correct”, otherwise display “Too high”. Code: 019 Ask the user to enter 1, 2 or 3. If they enter a 1, display the message “Thank you”, if they enter a 2, display “Well done”, if they enter a 3, display “Correct”. If they enter anything else, display “Error message”. Code:

Ask the user to enter their first name and then display the length of their name. Code: 021 Ask the user to enter their first name and then ask them to enter their surname. Join them together with a space between and display the name and the length of whole name. Code: 022 Ask the user to enter their first name and surname in lower case. Change the case to title case and join them together. Display the finished result. Code: 023 Ask the user to type in the first line of a nursery rhyme and display the length of the string. Ask for a starting number and an ending number and then display just that section of the text (remember Python starts counting from 0 and not 1).

igpay, banana becomes ananabay, and aadvark becomes aadvarkway. Create a program that will ask the user to enter a word and change it into Pig Latin. Make sure the new word is displayed in lower case. Code: 027 Ask the user to enter a number with lots of decimal places. Multiply this number by two and display the answer. Code: 028 Update program 027 so that it will display the answer to two decimal places. Code: 029 Ask the user to enter an integer that is over 500. Work out the square root of that number and display it to two decimal places. Code:

Display pi (π) to five decimal places. Code: 031 Ask the user to enter the radius of a circle (measurement from the centre point to the edge). Work out the area of the circle (πradius2). Code: 032 Ask for the radius and the depth of a cylinder and work out the total volume (circle areadepth) rounded to three decimal places. Code: