Task 6 Write a Python program that reads 5 numbers into a list and prints the largest number and its location or index position on the list. [You are not allowed to use the max(, sort(), sorted()...




Must show it in Python:



Please show step by step with comments.



Please show it in simplest form.



Please don't use any functions




Please don't use any def func ()


Task 6<br>Write a Python program that reads 5 numbers into a list and prints the largest number and its location or index position on the list. [You are not allowed to<br>use the max(, sort(), sorted() function here]<br>Hint: Assume the first input to be the largest value initially and the largest value's location to be 0.<br>Note: You may need to be careful while printing the output. Depending on your code, you might need data conversion.<br>===== ====<br>==============<br>Sample Input:<br>7, 13, 2, 10, 6<br>Sample Output:<br>My list: [7, 13, 2, 10, 6]<br>Largest number in the list is 13 which was found at index 1.<br>====== ====-= =======<br>====== ========<br>==================<br>

Extracted text: Task 6 Write a Python program that reads 5 numbers into a list and prints the largest number and its location or index position on the list. [You are not allowed to use the max(, sort(), sorted() function here] Hint: Assume the first input to be the largest value initially and the largest value's location to be 0. Note: You may need to be careful while printing the output. Depending on your code, you might need data conversion. ===== ==== ============== Sample Input: 7, 13, 2, 10, 6 Sample Output: My list: [7, 13, 2, 10, 6] Largest number in the list is 13 which was found at index 1. ====== ====-= ======= ====== ======== ==================

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here