Write a Python program that reads 5 numbers into a list and prints the smallest and largest number and their locations in the list. [You are not allowed to use the max(), min(), sort(), sorted()...







Write a Python program that reads 5 numbers into a list and prints the smallest and largest number and their locations in the list. [You are not allowed to use the max(), min(), sort(), sorted() functions here]






Sample Input:

7, 13, -5, 10, 6



Sample Output:

My list: [7, 13, -5, 10, 6]






Write a Python program that takes two lists as an input from the user. Then print a new list with thecommon elements of both the input lists.






Sample Input 1:

A, B, C, D


C, E , F, B



Sample Output 1:

['C', 'B']













Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here