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

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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