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']
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here