Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) The following code will print 100 numbers, randomly selected between 0 and 1 million import random for k in range (100): print (random.randint (0,1000000))

image text in transcribed
2) The following code will print 100 numbers, randomly selected between 0 and 1 million import random for k in range (100): print (random.randint (0,1000000)) Write a python script to create a list containing N random integers - N should be at least 10,000. Write two functions myminalist) and mymax(alist) to find the maximum and minimum entries in the list and the index of their position in the list. Test your code using the inbuilt min() and max() functions, along with the list.index() method. However, your mymin() and mymax() functions cannot use any inbuilt functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

Students also viewed these Databases questions