Artificial Intelligence and Machine Learning Lab (2023-24)
Assignment-3 DATE- 12/02/2024
1) Write a Python program to compute the GCD of two numbers.
2) 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). 3) Create a NumPy array and apply methods such as append(), insert(), pop(), remove(), index(), sort(), and reverse(). 4) Write a program to copy array with assignment operator, shallow copy method and deep copy method. 5) Write a program for math and cmath module functionality in your program. E.g., math.acos(), math.ceil(), math.exp(), math.gcd(), cmath.tan(x), cmath.log10(x), cmath.isclose(). 6) Write a program to print a given number is Armstrong or not. 7) Write a program to create a calculator using function.
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More