Numbers from the file and displays

Assignment Help Business Management
Reference no: EM131488310

1. Write code that does the following: opens an output file with the filename number_list.txt, uses a loop to write the numbers 1 through 100 to the file, and then closes it.

Here is my answer to the 1st question
file = open('filename number_list.txt', 'w')
for i in range(1,100):
file.write('{}n'.format(i))
file.close()

2. Write code that does the following: opens the number_list.txt file that was created by the code you wrote in question 3, reads all of the numbers from the file and displays them, and then closes the file.

Reference no: EM131488310

Questions Cloud

Reliability and availability : The purpose of this assignment is to familiarize students with the multiple collaboration tools available.
How is this application beneficial to society : What practical application results from the operation of logic gates and how is this application beneficial to society?
What is the bond expected rate of return : (Bondholders' expected rate of return) You own a bond that has a par value of $1,000 and matures in 5 years. It pays a 5 percent annual coupon rate.
What is your estimate of total costs at the end of five year : What are your cost assumptions? Do you anticipate any changes in year 2 and beyond? What is your estimate of total costs at the end of 5 years?
Numbers from the file and displays : Write code that does the following: opens the number_list.txt file that was created by the code you wrote in question 3, reads all of the numbers.
List the conventions that will apply to the vessel : List the conventions that will apply to the vessel in commercial use. Describe your immediate thoughts with regard to bringing this ship into class
What would the current yield be : (Expected rate of return and current yield) Citigroup issued bonds that pay a 5.5 percent coupon interest rate. The bonds mature in 5 years.
Principles of web development : Principles of Web Development. What seem to be the most common design flaws in websites?
Formulate the yield to maturity of the bond : (Yield to maturity) Assume the market price of a 5-year bond for Margaret, Inc. is $900, and it has a par value of $1,000. The bond has an annual interest rate.

Reviews

Write a Review

Business Management Questions & Answers

  What legal remedy would release turban from contract

Turban, an immigrant who speaks little English, enters into a contract to pay $300 per month for ten years to purchase an auto from Travel Motor Co. The appraised retail value of the car is $5,000. What legal remedy would release Turban from his c..

  Pay for performance systems

Pay for performance systems - explain what is considered factors leading to successful pay for performanc

  Discuss the four components of hipaa

Identify and discuss the four components of HIPAA. For each component, identify a violation that may occur in a healthcare setting that might lead to an investigation by the OIG.

  Degree of information gathering as well as accountability

The retrospective survey like other surveys offers a degree of information gathering as well as accountability.

  Illustrates what are potential issues-considerations relates

Illustrates what are potential issues or considerations relative to expanding from an exclusive domestic market into a global market with horizontal construction operation. Illustrate what are ethical and social issues within the global market of ..

  Teachers and stewards what comes to mind

When you think of the role of leaders as designers, teachers and stewards what comes to mind? What does this mean to you? How would this change the culture of your workplace?

  Open-minded employees

Did they consciously focus on encouraging employees to keep an open mind, have a questioning attitude, and generate new ideas?

  Developing financial planners at amp

Question What out comes should AMP collect to determine the effectiveness of the Career Changer Program? What evaluation design should it use? Explain your choice of out comes and design.

  Upsides and downsides of diverse pool

Discuss the upsides and downsides of the diverse pool of mortgage products and how knowledge of how discount points, loan prepayment, APR & EBC operate, help a consumer avoid some common unforeseen errors.

  Controversial provisions of williams decision

Class, one of the controversial provisions of Williams decision was the notion that one of the major life functions must be impaired

  Did you find any blogs that are of questionable social value

Peruse the various blogs on MySpace. What seem to be the dominant blog topics? Did you find any blogs that are of questionable social value.

  How you use research methods within your specific discipline

Select one of these tools and discuss how you might use it within your specific discipline. Include the specifics on how it would accomplish the identified task.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd