Question: Using Anaconda Jupyter notebook, write the Python script and execute, save and upload the below programs in eLearning. a. (1 Mark) Write a Python program
Using Anaconda Jupyter notebook, write the Python script and execute, save and upload the below programs in eLearning. a. (1 Mark) Write a Python program to do the below task. Create a tuple and set with the following price values: 77, 1200, 70, 50, 77, 50, 90, 85 b. Create a dictionary with the following items: {"a":120,"6": 1200, "e": 80,"d": 70) Display the last element of the tuple. d. Display the position of first occurrence of element 50 in tuple. Count how many elements has a value 77 in tuple. f. Display in a tabular format all the prices multiplied to 0.25 g. Display the highest value in the set. h. Display in a tabular format only the keys of dictionary. c. e. (1 Mark) (1 Mark) (1 Mark) (1 Mark) (2 Marks) (1 Mark) (2 Marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
