0% found this document useful (0 votes)
7 views2 pages

Machine Learning

This document outlines an assignment aimed at improving Python programming skills through various tasks involving control structures, loops, and operators. It includes ten specific programming tasks such as finding the largest of three numbers, generating patterns, and checking for even or odd numbers. The assignment must be executed in a Jupyter notebook and submitted as a zipped folder containing the files.

Uploaded by

Pranit Vichare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Machine Learning

This document outlines an assignment aimed at improving Python programming skills through various tasks involving control structures, loops, and operators. It includes ten specific programming tasks such as finding the largest of three numbers, generating patterns, and checking for even or odd numbers. The assignment must be executed in a Jupyter notebook and submitted as a zipped folder containing the files.

Uploaded by

Pranit Vichare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Title: Mastering Control Structures, Loops, and Operators in Python

Objective:
The purpose of this assignment is to enhance your proficiency in Python
programming through challenging tasks. You will develop skills in control flow
statements (if-elif-else), loops (for, while), nested loops, pattern programming, and
more. The assignment also focuses on handling infinite loops, understanding loop
control mechanisms (break, continue, pass), and using operators and escape
characters. Additionally, tasks will challenge your understanding of input/output
operations and type casting.

Task 1: Write a Python program to find the largest of three numbers.


Task 2: Create a program that checks if a number is even or odd.
Task 3: Write a program that prints numbers from 1 to 100 but skips numbers
divisible by 7.

Task 4: Write a program to print the multiplication table of a given number.

Task 5: Write a program that uses a nested loop to print a right-angled triangle
pattern of stars based on user input.

Task 6: Create a Python program that prints the following pattern using nested

loops:
1

12

123

1234

Task 7: Create a Python program to check if a character entered by the user is a


vowel or consonant.
Task 8. Write a Python program that generates a diamond pattern of stars
For n = 5, the output should look like:

***

*****

*******

*********

*******
*****

***

Task 9: Write a Python program to reverse the digits of a given number.


Task 10. Create a Python program that generates the following pyramid pattern:
1

121

12321

1234321

123454321

Submit Guidelines

● Execute the assignment in a jupyter notebook file and download it as pdf. Once
downloaded, zip the folder.

How to ZIP a folder:

● Put all files you want to compress into a new folder.


● Right click on that folder.
● Select the “Compress to ZIP file” option and then click “Compressed (Zipped) folder.”
● A new .ZIP file will be created that contains your document(s). Upload this folder.

You might also like