The document contains a series of Python programming exercises, including basic tasks such as displaying 'Hello, World!', adding two numbers, calculating the area of a triangle, swapping variables, and finding the largest of three numbers. It also lists additional tasks for further practice, such as checking if a number is positive or negative, determining odd or even numbers, and finding prime numbers. Each exercise includes sample code and comments for user input options.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views
AI Lab1 Program
The document contains a series of Python programming exercises, including basic tasks such as displaying 'Hello, World!', adding two numbers, calculating the area of a triangle, swapping variables, and finding the largest of three numbers. It also lists additional tasks for further practice, such as checking if a number is positive or negative, determining odd or even numbers, and finding prime numbers. Each exercise includes sample code and comments for user input options.