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 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
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
question
Physics, 01.06.2021 04:50
question
Mathematics, 01.06.2021 04:50
question
Social Studies, 01.06.2021 04:50
question
Mathematics, 01.06.2021 04:50
Questions on the website: 13722361