subject

Now the hard task! 1 Write a function that gives the users four random integers between 1 and 10 and ask them to enter the square number of them. If the user answers all of them correctly, congratulate them. Otherwise, show them the right answer
# Step e: Import numpy -- ALWAYS import all the Libraries you need at the beginning! import numpy as np #Step 1: Function creation -- refer to the Last Lab for the syntax of function creation # does our function take parameters? * Create your function here:|| #Step 2: Create an array of four random integers between 1 and 10 #Step 3: Print your numbers #Step 4: Prompt the user to enter four numbers, ONE AT A TIME. Use a Loop to store these four numbers in a new array # HINT 1: We could take all four numbers in through one Line, but to practice Loop, Let's do it the hard way # HINT 2: You can start by creating an empty array -- np. array([]), then appending to it one at a time # HINT 3: Remember, input() only returns STRINGS. You need to turn them into integers #Step 5: Now that you have the two arrays, you can compare them using array functions and decide whether the answers are correct # HINT 4: To compare two arrays, you can use array1 == array2 -- however, you have to use a variable to hold the result The resulted array is an array of Boolean values. To quickly check whether it contains true value, you wight want to use the all() or any function...

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 09:10
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
You know the right answer?
Now the hard task! 1 Write a function that gives the users four random integers between 1 and 10 an...
Questions
Questions on the website: 13722361