Question: ALL THE QUESTIONS Python programming June CAT1 2025 Question one a) What will be the output of the below code 5 mks word = 'aeioubcdfg'
ALL THE QUESTIONS Python programming June CAT1 2025 Question one a) What will be the output of the below code 5 mks word = 'aeioubcdfg' print word [:3] + word [3:] b) Create a lists carprices comprising cars and their prices of 10 cars. 3mks i) Print out the list 3mks ii) Add the price of first and last car in your list print the total cost 5mks Question two a) Given the list below create another list that is equal to the given list with all the elements raised to power three. 6 marks [18, 78], [21, 27], [10, 98], [88, 75] b) Explain the output of the following code. 4 marks x=int(input('Enter limit: ')) i=x while (i>=1): j=1; while(j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
