AI Practical Questions
AI Practical Questions
4) WAP to create a simple calculator which performs four basic operations: addition,
multiplication, subtraction, and division.
5) WAP to print table of a number accepted by the user using for loop.
8) WAP to print the sum of user entered 10 numbers using while loop.
9) WAP to accept a list of 10 numbers from user and sort it in ascending order.
X10) WAP to accept a list of 10 numbers from the user and print a list of squares of each
item.
11) What will be the output of the below code:
A=”holiday”
print(A[2:-2])