1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vlabodo [156]
2 years ago
9

Finish the code to search for a 7 in the array.

Computers and Technology
1 answer:
guapka [62]2 years ago
8 0

Answer:

The complete code is as follows:

from array import *

myArr = array('f',[3, 5, 7,3, 10])

location = myArr.index(7)

print(str("7")+" is at position "+str(location+1))

Explanation:

I made corrections to the third line of the code and I added a line

This line gets the index of 7 from the array myArr using the index keyword

location = myArr.index(7)

This line prints the position of the 7 in the array

print(str("7")+" is at position "+str(location+1))

You might be interested in
Please Help!! Digital Information Technology Class!!
Rama09 [41]
It’s probably GUI??.
6 0
3 years ago
Read 2 more answers
Lenny copied and pasted content from a commercial website into his research paper without citing his source, passing the work of
Sedbober [7]
Lenny might be either suspended
Or might be failed in that particular course
6 0
10 months ago
Robert's got a quick hand
Alina [70]
verry
good
song
love
it
6 0
2 years ago
Read 2 more answers
The purpose of technology is to solve problems and meet needs.<br><br> True or False
larisa [96]

Hello!

the answer is: True

Technology is used widely in many, many ways. from helping astronauts explore the cosmos, to allowing people to entertain themselves in their free time, technology has solved many problems and met many needs as intended

I hope this helps, and have a nice day!

3 0
2 years ago
Read 2 more answers
JKJKNJJNJJJLKN;K;L;LHNL;BJ
bezimeni [28]

did you have a stroke bestie?

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which Command Prompt commands in Windows is used for listing a computer connections to shared resources
    10·1 answer
  • Where could an identity theft access your personal information?
    9·2 answers
  • A network that typically reaches a few meters, such as up to 10 meters (33 feet), and consists of personal devices such as mobil
    14·1 answer
  • Describe how catching exceptions can help with file errors. Write three Python examples that actually generate file errors on yo
    12·1 answer
  • Why is it NOT a good practice to save everything on the desktop?
    6·2 answers
  • What is the default font style of “Title” box in MS PowerPoint 2013?
    8·1 answer
  • Abby has always dreamed of having her own ice cream shop. Now as a young entrepreneur she has decided to pursue her dream, but s
    13·1 answer
  • Can someone help me with this lab assignment? I really do not know what should I do?
    5·1 answer
  • Need help ASAP.<br> I am so lost.
    5·1 answer
  • What are some limitations when it comes to testing and ensuring program quality? List at
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!