Assignment
University
Mt. San Antonio CollegeCourse
College Computer SciencePages
3
Academic year
2023
Jemin Kheni
Views
0
Kheni jemeen20SE02ML024 Question 1: Reverse the following tuple without using reverse function.aTuple = (10, 20, 30, 40, 50) Question 2: Swap two numbers without using temporary variable. Question 3: Copy element 44 and 55 from following tuple into new tuple.tuple1 = (11, 22, 33, 44, 55, 66) Question 4: Sort a tuple of tuples by 2nd item tuple1 = ((‘a’, 23), (‘b’, 37), (‘c’, 11), (‘d’, 29)) Question 5: Write a program to input n numbers from the user. Store these numbers in a tuple. Print the maximum and minimum number from this tuple.
Kheni jemeen20SE02ML024 Question 6: Given a word, compute the scrabble score for that word.You'll need these: Letter ValueA, E, I, O, U, L, N, R, S, T 1D, G 2B, C, M, P 3F, H, V, W, Y 4K 5J, X 8Q, Z 10 Question 7: Count occurrences of particular element in tuple without using count function also take elements of tuple from user.
Kheni jemeen20SE02ML024
Python Tuple Manipulations and Challenges
Please or to post comments