subject

Beau is a good dog, but he doesn't clean up after himself! Everyday I have to find his "landmines" and pick them up :-( . Help me find find where he left them! Create a 10 x 10 array to represent all the places that the "landmines" could be in my backyard.
Randomly pick 4 locations of the array (it's OK if you pick the same element twice). Update the array to indicate where and how many "landmines" are in each location. To pick a random integer use the randint() function from the random module (the random module should already be installed).
Finally, print out the array to show the locations.
Hint: Don't forget to allow for the possibility that more than 1 "landmine" may be in the same location!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 25.06.2019 10:50
4.9: population write a program that will predict the size of a population of organisms. the program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. a loop should display the size of the population for each day. prompts, output labels and messages.the three input data should be prompted for with the following prompts: "enter the starting number organisms: ", "enter the daily increase: ", and "enter the number of days the organisms will multiply: " respectively. after the input has been read in successfully, a table is produced, for example: 2 300.0 4 675.0 under the heading is a line of 29 dashes followed by one line for each day, showing the day number and the population at the beginning of that day. input validation.do not accept a number less than 2 for the starting size of the population. if the user fails to satisfy this print a line with this message "invalid. must be at least 2. re-enter: " and try to read the value. similarly, do not accept a negative number for average daily population increase, using the message "invalid. enter a non-negative number: " and retrying. finally, do not accept a number less than 1 for the number of days they will multiply and use the message "invalid. enter 1 or more: ".
Answers: 1
question
Computers and Technology, 25.06.2019 13:00
Ok so im actually just wondering can you change you username
Answers: 2
question
Computers and Technology, 25.06.2019 23:00
When the coolant system thermostat is closed, coolant is allowed to flow to the
Answers: 1
You know the right answer?
Beau is a good dog, but he doesn't clean up after himself! Everyday I have to find his "landmines" a...
Questions
question
Mathematics, 27.03.2020 01:49
question
Mathematics, 27.03.2020 01:49
question
Biology, 27.03.2020 01:49
Questions on the website: 13722363