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, 21.06.2019 20:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
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
Spanish, 27.10.2019 16:43
question
Mathematics, 27.10.2019 16:43