Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10.

I wrote as below :
>>> x = [1/2.0, 1/3.0, 1/4.0, 1/5.0]
>>> y = 0
>>> for i in x:
... y = y + 1
... print x
...
[0.5, 0.3333333333333333, 0.25, 0.2]
[0.5, 0.3333333333333333, 0.25, 0.2]
[0.5, 0.3333333333333333, 0.25, 0.2]
[0.5, 0.3333333333333333, 0.25, 0.2]

But output prints for every turn. Is it possible to print once ?
Note: This is in python,

Answers

Answer 1
for i in range(2, 10):
print 1.0 / i

Related Questions

The budget process which emphasizes the achievement of goals and competition between alternatives is:

Answers

The question has multiple choices;


A) Incremental budgeting.
B) Performance budgeting.
C) Program budgeting.
D) Target based budgeting.


I’d say D is the answer; Target based budgeting


Target based budgeting focuses on the achievement of goals and competition. Prices in Target based budgeting are used as a tool to make or break sales. This method includes researching the markets to decide at what exact price a product will sell.






Performance based budgeting is a strategic approach to allocating government resources based on desired outcomes and measurable accomplishments, rather than inputs, promoting efficiency and accountability.

The budget process that emphasizes the achievement of goals and competition between alternatives is known as performance based budgeting. This approach involves allocating resources based on desired outcomes rather than just the line item inputs such as salaries or supplies. It allows for expenditures to be evaluated in terms of their measurable accomplishments, ensuring that resources are connected to an organization's priorities.

In many governmental organizations, such as those in Texas, performance budgeting requires agencies to submit their goals and objectives when they request funds from the legislature, thereby incorporating a strategic element into the budgeting process. The approach promotes efficiency and accountability by focusing on the cost analysis and flexible budgeting that enables a government to adjust its spending in alignment with the actual performance and priority outcomes.

Cities like Redmond, WA, and Somerville, MA, have implemented performance-based budgeting that is tightly connected to strategic priorities. These models prioritize the allocation of funds based on a clear set of desired outcomes and emphasize ongoing evaluation to assure public funds are used effectively towards achieving these priorities.

Which access database object is best to use for the basis of a report when specific criteria must be applied to the report?
a. subdatasheet
b. form
c. table
d. query?

Answers

The answer is Query.

A query helps a user retrieve specific items from a MS Access database. If you have an item that matches with all the criteria you enter, it shows in the query results. A query is sent to the data source to retrieve the data.




Answer:

The correct answer is option D. Query.

Explanation:

When we talk about Query, we refer to the terms we write on Google, Yahoo, and other search engines when conducting an internet search that contains a keyword.

These concepts can be very broad, and when we search, they will result in different links to pages dealing with the subject. Although we use keywords when writing the query, it does not mean that it is just a keyword. But there may also be more phrases or misspelled words, which will also yield a result.

Given this information, we can say that the correct answer is the D. Query option.

Which best describes the similarities and differences between the Interactive Media pathway and Network Systems pathway?


A)_Both are designed to create webpages, while Interactive Media would focus mainly on communication methods in the webpage.

B)_Both are designed to help employees with computer problems, while Interactive Media would focus mainly on webinars and online communication.

C)_Both are designed to create new software, while Network Systems would focus mainly on designing databases.

D)_Both are designed to help protect computers from viruses, while Interactive Media would focus more on research and maintenance.

Answers

The best answer is (D) Both are designed to help protect computers from viruses, while Interactive Media would focus more on research and maintenance.


Interactive media pathways deal with the creation of multimedia products such as websites for schools, business, and organizations. On the other hand, network career paths deal with design, installation and network maintenance.
If we decided to choose option A, then it would be wrong to say network career paths deal with creation of website.
If we chose B, it would be wrong to say both are designed to help employees with computer problems because this one belongs to another career path called Information Support and Services.
If we chose C, it would be wrong to say both are designed to create new software. This belongs to Programming and Software Development.
Therefore, the best answer would be D




Answer:

I think that the answer is:

Option D, Both are designed to help protect computers from viruses, while Interactive Media would focus more on research and maintenance.

Explanation:

It makes the most sense in my opinion. I'll also try to confirm on whether or not the answer really is D by attaching a screenshot as soon as I'm done with the unit test.

Update: I tried to see what answers I got wrong after completing the unit test but I wasn't able to. I still think that this is the best answer but please let me know if I'm wrong.

12. When trying to identify the sorted column in a table, you would look for the column where A. an arrow is displayed in the field name. B. data is presented from low to high. C. data is in alphabetical order. D. only a few records appear.

Answers

well i have to say C because its sorted  
Which of the following should be filed directly before Mortensen, Art?

Which of the following is a primary responsibility of the Federal Reserve Bank?

A.Established monetary policy
B.Collect taxes
C.Pass monetary laws 
D.Print money

Answers

D. Print Money.

pls brainliest.

Answer: (B) Collect taxes

Explanation:

 The responsibility of the federal reserve bank is that it basically influence the stock of the cash and credit. It also helps in controlling and managing money related foundations; filling in as a banking and financial operator for the government of united state and providing installments administrations to people in general through storehouse organizations like banks, credit.

 The federal reserve bank is the type of central bank in the unites state and its primary responsibility is to collect all the taxes.

 Therefore, Option (B) is correct.

Apache web server is the most widely used network operating system used on web servers.
a. True
b. False

Answers

The statement that Apache web server is the most widely used network operating system used on web servers is true. This server runs on 67% of all webservers in the world
The Apache web server is a free and open-source cross-platform HTTP Server, developed and maintained by Apache Software Foundation.

Answer:

True ( A )

Explanation:

The Apache web server is the most widely used network operating system on web server. the Apache web server was launched in 1995 and it serves more than 46% of the websites since 1996 till date.

The Apache web server is official known as Apache HTTP server and it is been developed and maintained by the Apache software foundation through the efforts of an open community of developers. the web server is an open source and free web server software hence it is been used by most website. it is called a web server  because it assists/enable website to serve their website contents to online users.

Which of the following elements help people feel connected to a design or website?
A.exciting colors
B.bright lines
C.image of people
D.wide spaces,

Answers

A. Exciting Colors
Your welcome.

Answer:

A. Exciting colors

Explanation:

Colors have a psychological effect on people, Color grabs attention. Since color has an effect on the mind of people, Color can be use to draw attention and also it can be use to convey messages.

Mostly cool colors make people feel calm, while lively colors energize us and make us lively.

Since we can easily get attracted to colors, people feel connected to design or website through exciting colors.

Which step is not part of planning a worksheet design? (1 point) state the purpose of the worksheet. decide what outputs are needed to achieve the purpose. enter labels, values, and formulas. decide what input values are needed?

Answers

The answer is (C) Enter labels, values and formulas


The first few steps of planning an effective worksheet is to state the purpose of the worksheet. Whoever is working on the worksheet should invest their time to plan and design the sheet to meet their goals. The designer should also make it obvious where the user is supposed to input data. Other planning techniques include data validation and protection options.



The part of the computer that contains the brain, or central processing unit, is also known as the



A. monitor.
B. keyboard.
C. modem.
D. system unit.

Answers

The answer is (D system unit) hope it helps and have a good one!
The system Unit is the Pc's Brain

If you are working on a document and want to have Word automatically save the document every minute, what steps should you use to find that setting so you can adjust it?

A. Click Edit, then click Properties, and then find the file information.
B. Click Insert, then click Auto, then click Save, and then find the saving options.
C. Click File, then click Save, and then click AutoSave.
D. Click File, then click Options, then click Save, and then find the AutoRecover information.

Answers

I think it is D but I'm not 100% sure

A page layout technique that often uses a percentage value for width is called ________.

Answers

It is called a fluid layout

A fluid web page typically is configured with percentage widths that sometimes take up 100% of the browser. They will use relative units like percentages instead of pixels and will often fill the width of the page regardless of what the width of the browser might be. They keep the same spatial weighting to all elements and works fine on different sizes of screens of similar sort. They define each area of an image layout perfectly.  




A(n) ____ is a web site that allows multiple users to contribute content and edit existing content.

Answers

A wiki. (one example is Wikipedia)

A content management system (CMS) is a tool for managing content that lets many contributors create, change, and publish content. Wikis are basically web pages with an open editing system.

What are the website that allows multiple users?

A wiki is a tool for group collaboration that enables students to add to and edit one or more pages of course-related content. Wikis are collaborative in nature and help create a sense of community within a class. A wiki is essentially a web page with an open editing mechanism.

.

People only need a computer, Internet connectivity, a web browser, and a rudimentary comprehension of a simple markup language in order to contribute (e.g., MediaWiki markup language).

Therefore, Communities of editors and contributors can work together to create documents on a wiki

Learn more about website here:

https://brainly.com/question/19459381

#SPJ5

The purpose of the ________ element is to describe the contents of a table.

Answers

<caption> element.

It is used to add a caption to a HTML table. With CSS, it may be positioned right at the bottom of the table but in HTML, it must appear as the 1st descendant of a parent <table>. Note that you can specify only one caption in a single table.






They begin beating it with a hose to find out what it really means. How does the figurative language in this excerpt reveal Collins’s message?

Answers

Collin criticizes the way some readers try to understand a poem, that readers should be patient and open minded when reading poems in order to see the meaning, not to over-analyze it. To go with the flow and focus on the poem itself, to get inside the poem and see what it means.

Answer:

A  

Explanation:

What does the Chart Elements option allow you to change? A. Style B. Color C. Axis titles D. Values

Answers

Hello,

Here is your answer:

The proper answer to this question is option C "Axis titles".

Here is how:

The Chart Elements option allows you to change titles, and also axis.

Your answer is C.

If you need anymore help feel free to ask me!

Hope this helps!

The correct answer is C. Axis titles


A(n) _______ allows an attacker to use a network structure to send large volumes of packets to a victim.

Answers

A Smurf Attack

Smurf attack is kind of a DDoS attack that is somewhat similar to ping floods and in most cases exploits characteristics of broadcast networks. A system is flooded with spoofed messages. It does this by exploiting protocols of the IP and ICMP.

 






I will give Brainliest to the best answer, I need urgent HELP

Assume you're running a query on your orders in the past year. You want to see how many orders were placed after May. What type of query would you use to find this data?

A. Select
B. Range
C. Complex
D. Parameter

Answers

The answer is B. Range

All network operating systems today use the ____ protocol suite for internet communication.

Answers

TCP/IP protocols........

3. By eliminating data redundancy, you're enforcing data A. validation. B. integrity. C. consistency. D. accuracy.

Answers

Eliminating redundancy would enforce data consistency .
That's C.

Answer c

Explanation:

ASAP!!!!!!! 6.From Excel to PowerPoint, you can copy and paste

A. cell ranges and charts, simultaneously.
B. cell ranges and charts, one at a time.
C. cell ranges only.
D. charts only.
ANSWER ONLY IF YOUR A 100% SURE ABOUT YOUR ANSWER

Answers

Your answer is A.

Let me know if you have any other questions! ♥

Which command shows the recommended way to display information about the network interface as well as its ip configuration?

Answers

The "ipconfig" command in windows will show the configuration of all attached network interfaces.

On the Header & Footer Tools Design tab, you can conveniently add a header, a footer, page numbers, and

A. columns.
B. style.
C. timestamp.
D. table.

Answers

the answer is d table now pls give me brainliest

Answer:

C timestamp

Explanation:

I am 99% sure, please give brainiest if I am right

An administrator wants to create four subnetworks from the network address 192.168.1.0/24. what is the network address and subnet mask of the second useable subnet?

Answers

Final answer:

The network address of the second usable subnet created from the 192.168.1.0/24 network is 192.168.1.64 with a subnet mask of 255.255.255.192 when divided into four subnetworks.

Explanation:

To create four subnetworks from the network address 192.168.1.0/24, we need to borrow 2 bits from the host part of the subnet mask because 22 = 4 which is the number of required subnetworks. This borrowing of bits changes the subnet mask from /24 to /26, as each bit borrowed adds one to the subnet mask.

The new subnet mask is thus 255.255.255.192 in decimal notation, or /26 in CIDR notation. To find the network address of the second usable subnet, we calculate the range of each subnet. Each range has 264 addresses, derived from the 6 bits remaining for the host (232 - 2subnet bits).

The first subnet starts at 192.168.1.0, so the second subnet starts after the first 64 addresses, which means at 192.168.1.64. Therefore, the network address of the second usable subnet is 192.168.1.64 with a subnet mask of 255.255.255.192.

Which game console was the first to use the blue ray side as a distribution medium ???

A. Xbox 360
B. Nintendo wii
C. PlayStation 3
D. PlayStation

Answers

The awser is c, Play station three



Final answer:

The PlayStation 3 (PS3) was the first game console to utilize Blu-ray discs as its distribution medium.

Explanation:

The answer to the question - Which game console was the first to use the blue ray side as a distribution medium? - is C. PlayStation 3.

The PlayStation 3 (PS3) was the first game console to utilize Blu-ray discs as its distribution medium. Blu-ray technology allowed for larger storage capacity, which was necessary for the high-definition graphics and immersive gameplay of PS3 games.

Blu-ray technology offers much higher data storage capacity compared to previous optical disc formats such as DVDs. This allowed developers to create more expansive and visually stunning games that took advantage of the PS3's powerful hardware.

What type of backups are kept on site at the computer center for immediate recovery purposes?

Answers

They are known as working copy backups

Working copy backups also sometimes known as shadow copies are full or partial backups kept at the computer center for immediate recovery purposes. This type of backup uses Journaled Filing Systems (JFS) that consist of a log file of all transactions and changes that have happened within a set period of time. If a crash happens, the OS can refer to the log files to see the transactions.

 






this information is generally included on a fax cover sheet:
(select all that applies.)

content of message
date of transmission
number of pages
sender's fax and phone number
sender's mailing address
subject of communication

Answers

date of transmission
number of pages
sender's fax and phone number

We fax a fax cover sheet to a recipient before the actual fax message. Your name and the name of the recipient, your phone and fax number and that of the recipient as well and the date you are sending the fax should be included in a fax cover sheet. You should also include the total number of pages for the fax transmission.



Before creating your own customized template, you should

A. consider whether you know other people who would use it.
B. perform a search to make sure it does not already exist.
C. close all Microsoft programs.
D. collapse the ribbons to make a larger work area.

Answers

The answer is perform a search to make sure it does not already exist (B).

Answer:

b

Explanation:



A ________ in a spreadsheet is a predefined operation. *


3 points












transition









function









generation









traction

Answers

Answer:

The correct answer is Function

What chip, in modern cpus, optimizes the flow of information into and out of the cpu?

Answers

Answer:


IMC - Integrated Memory Controller


Hope This Helps!

The chip, in modern CPUs, that optimizes the flow of information into and out of the CPU is IMC. The correct option is A.

What is IMC?

The memory controller is a digital circuit that controls data flow to and from the computer's main memory.

Memory integration is the concept that memories for related experiences are stored in the brain as overlapping representations, forming memory networks that span events and allow for the flexible extraction of novel information.

The benefit of integrating the memory controller within the CPU is that it can effectively control the memory controller to operate at the same frequency as the CPU core, and data exchange between the memory and the CPU does not need to go through the northbridge.

Thus, the correct option is A.

For more details regarding CPU, visit:

https://brainly.com/question/16254036

#SPJ6

Your question seems incomplete, the missing options are:

IMCMCCSRAMDRAM

Which option best describes the game Farmville?

It is designed to educate players about virtual currencies. It is designed to educate players about various types of crops.It is designed to promote social interaction and community building.It is designed to educate players about various types of livestock.

Answers

The answer would be It is designed to promote social interaction and community building.

FarmVille is a social networking game aimed at promoting social interaction and community building through virtual farming activities on the platform.

The game FarmVille is a social networking game developed by Zynga that is integrated with platforms. The game focuses on social interaction and community building, as players grow and harvest crops, sell them to expand their farms, and connect with friends in a virtual community. In addition to fostering competition and strategy through game-play, FarmVille facilitates communication among players, as evidenced during Valentine's Week in 2010, where players sent over 500 million virtual gifts through the game. Although it offers educational aspects about crops and virtual economies, its primary goal is to blend gaming with social media to engage a broad audience and encourage interaction.

Other Questions
Find the cosine and the tangent of 60 degrees solve the system of equations by substitution. 3/8 x + 1/3 y =17/24 and x + 7y = 8 ) a situation in which human failure could lead to a compromise of identification and authentication Based on his behavior throughout the play, which of the following best describes Capulet?cold, calculating, with only his interests at heartcompassionate, consistent, and caring but extremely overprotective of Julietbasically cheerful and easygoing but prone to fits of violence and passioninconsistent, conniving, and regularly disrespectful of his daughter What instruments are in the song Immortals by Fall Out Boy? Based on the principle of frequency, a good way to help your body recover from physical activities is to A practice activities before incorporating them into your workouts B choose an activity that you haven't tried before to see how it affects you C alternate days of the week that you perform that activity D push yourself harder when you begin the activity, then lower the intensity And this one as wellThe small shock you feel when you rub your shoes on carpet and touch something is called by A conduction B insulatorC inductionD current Please need help Dilate (9, 6) using a scale factor of 1/3 which of the following statements is true A. individual productivity is necessary for group productivity When Alexander and his army invaded Asia in 334 BCE, where did they first meet serious Persian resistance? Motor nerve and all the muscle fibers it controls is called Find the amount of Social Security deducted: $37890 annually. if you drop a bowling ball, a tennis ball, and a feather from the top of a tall building at the same time which one will hit the ground first? ( in the absence of air resistance)A. the bowling ballB. the tennis ballC.the feather D.they will all hit the ground at the same time E.it is not possible to predict Which word is an adjective that means "inexpensive"? A. afford B. affordable C. avoid D. avoidable HURRY!!!!!!!!!!A(n) __________ phrase can only function as an adjective.A) infinitiveB) participialC) gerundD) objective Imagine that a strand of DNA has the following sequence of bases: AAGTTCGTCATC. What sequence of bases will the complementary strand of DNA have? Given a circle with measures of (C, d, and r) and a circle with measures of (C', d', and r'), what is r if C C' = 5 and d' = 20? Which is not an example of drug abuse? A. Forgetting what time you took your last dose and estimating when to take another. B. Using a drug to cause a high, rather than to treat a condition. C. Taking twice the recommended dosage because your symptoms seem very bad. D. Taking cold medicine to fall asleep because you know it helps you sleep when you take it for colds. What is silkscreen? A) a textile art form commonly used for household decoration in ancient China B) printmaking technique that uses a stencil placed on a silk screenC) furniture-making technique in which carved wood is decorated with silk cloth Which one of the following is a reason for Frisbee's popularity?A. Only athletic people can play.B. It's only for kids.C. Equipment is fairly cheap/.D. You need a whole team to play.