0% found this document useful (0 votes)
0 views

Lab Assignment 3 AI and ML (3)

The document outlines a lab assignment for an AI and ML course, consisting of 13 programming tasks in Python. These tasks include finding the largest of three numbers, computing GCD and LCM, checking for leap years, and determining if a string is a palindrome. The assignment focuses on decision and loop control statements in programming.

Uploaded by

hkg916192
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Lab Assignment 3 AI and ML (3)

The document outlines a lab assignment for an AI and ML course, consisting of 13 programming tasks in Python. These tasks include finding the largest of three numbers, computing GCD and LCM, checking for leap years, and determining if a string is a palindrome. The assignment focuses on decision and loop control statements in programming.

Uploaded by

hkg916192
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Assignment 3

(Programs on Decision and Loop Control Statements)


AI and ML Lab
1. Write a python program to find largest of three numbers.

2. Read two integer numbers from the keyboard and print minimum value using
ternary operator.

3. Write a Python program to compute the GCD of two numbers.

4. Write a program to compute LCM of two numbers.

5. Write a python program to that accepts length of three sides of a triangle as inputs.
The program should indicate whether or not the triangle is a right-angled triangle
(use Pythagorean Theorem).

6. Write a Python program to check whether a year entered by user at run-time is a


leap year or not.

7. Write a program to print a given number is Armstrong or not.

8. Write a program to print first ‘n’ elements of a Fibonacci series.

09. Write a program to create a multiplication Table.

10. Write a program to print a given string is a palindrome or not.

11. Write a program to remove punctuations from a string.

12. Write a Python program to check whether a character entered by a user is vowel
or not.

13. Write a program to print number of vowels present in a string

You might also like