Category: Python

Python
uncategorised

What is a variable?

In programming, variables are used to store information such as numbers, text, or logical values.Each variable has a name (identifier) and a value, and we can use this name to access or modify the stored data anytime in the program.

Read More
Python
uncategorised

Principal Component Analysis

Principal Component Analysis TASK Your task is to conduct PCA on the numeric features of the MLData2026 dataset, demonstrating the process and interpreting the results in a video presentation. The due date for this assessment is Friday of Week 7 on 17 April 2026 before midnight. Perform PCA and Visualise Data (i) Download the Assignment […]

Read More
Python
uncategorised

Write a Python program to implement Linear Regression using…

I need help with a programming and mathematics problem involving linear regression. Please write a Python program to implement Linear Regression using the Least Squares Method (without using libraries like sklearn). Requirements: Take dataset input (x and y values) from the user Calculate slope (m) and intercept (b) manually using formulas Display the final regression […]

Read More
Python
uncategorised

Write a Python program to solve a quadratic equation and fin…

I need help with a programming and mathematics combined problem. Please write a Python program to solve a quadratic equation of the form ax + bx + c = 0. Requirements: Take input values of a, b, and c from the user Use the quadratic formula to calculate the roots Display both roots clearly Handle […]

Read More
Python
uncategorised

Write a Python program to find the factorial of a number usi…

I need help with a Python programming question. Please write a program to find the factorial of a given number using recursion. Requirements: The program should take input from the user Use a recursive function to calculate the factorial Display the result clearly Explain the code step by step Also explain how recursion works in […]

Read More
Python
uncategorised

Why Python is great?

1. Very beginner-friendly Python reads almost like English, so its easy to learn compared to many other languages. 2. Extremely versatileYou can use it for: Web development Game development Automation Data science / AI (this is where it really shines) 3. Huge communityIf you get stuck, there are tons of tutorials, forums, and libraries to […]

Read More
Python
uncategorised

Python Question

Rewrite to Lower Similarity Fix the ReferencesClean Up the CodeProofread for Typos and Clarify Sampling The code is 850 words long and report is 1375 words. the changes is very critical and will upload after assigning Task Download the Assignment 1.ipynb file, along with MLData2026.csv from the Assignment 1 folder on Canvas. To help you […]

Read More
Python
uncategorised

Python Question

Rewrite to Lower Similarity Fix the ReferencesClean Up the CodeProofread for Typos and Clarify Sampling The code is 850 words long and report is 1375 words. the changes is very critical and will upload after assigning

Read More
Python
uncategorised

Difference between deep copy and shallow copy

1. Shallow Copy A shallow copy creates a new object, but does not copy nested objects. It only copies the reference (address) of inner objects. So, changes in nested objects will affect both original and copied object.Deep Copy A deep copy creates a new object and copies all nested objects as well. It makes a […]

Read More
Python

Assignment: Halloween Candy Name: Overview In this assignment, your job will be

Assignment: Halloween Candy Name: Overview In this assignment, your job will be to clean and wrangle data from a survey of Halloween candy to prepare it for a machine learning project. Once you have completed all the tasks in the notebook, save your notebook as halloween_candy, and verify that all the tests pass in CodeGrade. […]

Read More