Print the characters from the first integer to the second

Assignment Help Computer Engineering
Reference no: EM132114987

In Python, Write a function called printCharacters() that accepts a string and two integers. The function should simply print the characters from the first integer to the second.

For example:

s = "Hello, how are you this fine day?"

printCharacters(s, 2, 5) would print the second through the fifth characters inclusive. That is, it would print: ello

· You must use the range() function to do this.

· You may assume that the string is big enough to contain the two integer arguments. (In the 'real world', or course, you could never make such an assumption!)

Reference no: EM132114987

Questions Cloud

Quarterly expected return for investment b : Investment B is expected to pay 273 dollars each quarter forever and the next payment is expected in 3 months. What is the quarterly expected return
Prompt the user for an integer number with a program code : The Voyager 1 spacecraft, launched September 15, 1977, is the farthest-traveling Earth-made object. It is presently on the outer edges of our solar system.
Impact of depreciation expense : Can a tutor instruct me on the impact of depreciation expense has on the cash flow analysis of a capital project.
Estimated value per share : If the firm plans to issue 220,000 shares of common stock, then what is its estimated value per share?
Print the characters from the first integer to the second : Write a function called printCharacters() that accepts a string and two integers. The function should simply print the characters from the first integer.
Calculate the duration : Calculate the duration, in years, of a bond that matures in 5 years, pays $60 in interest twice a year (e.g., 12% coupon rate), and sells for $997.55.
Write a code in c that will partition your pic32 32kb ram : Write a code in C that will partition your PIC32 32KB RAM into four equal segments (8KB each) for the kernel data, kernel program.
What is the net effect on the money supply : If the First Bank of Chicago decides to sell some its investments in Treasury securities to Citibank of New Jersey, what is the net effect on the money supply?
Compare and contrast ripple-carry adder and carry-look : Compare and contrast Ripple-Carry Adder and Carry-Look ahead Adder

Reviews

Write a Review

Computer Engineering Questions & Answers

  Does the internet have a presentation layer

Does Internet have a presentation layer? If not, how are concerns about difference in machine architectures for example, different representation of integers on different machines addressed?

  Define the organization and access of a tree

Write a Map use the STL map for student id associated with student name and student.

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Embed your class in a test program.

  Discuss the responses to certain queries are sensitive

suppress responses that reveal sensitive information without disclosing that the responses to certain queries are sensitive

  Derive a formula for the normal vector of the plane

E27: Computer Vision - Spring 2016 - HOMEWORK 9. Derive a formula for the normal vector n of the plane using the tangent vectors tx and ty. Remember that ||n|| = 1 and n • tx = n • ty = 0

  How active directory impacts ken windows limited environment

Research the Internet on information about Active Directory. Explain how Active Directory impacts the Ken 7 Windows Limited environment.

  Create an additional array called less_array

Declare a single dimensional array of 65 characters. Convert each character into an integer and store it in a linked list.

  Compares advantage and disadvantage of universal serial bus

Create a table that compares the advantages and disadvantages of the Universal Serial Bus to those of the EIA-232F interface.

  Design a web page that provides a list of resources

Design a Web page that provides a list of resources for free clip art and free photographs. The list should contain at least five different Web sites.

  Discuss the process of technology specification

Discuss the Process of Technology Specification. The response must be typed, single spaced, must be in times new roman font.

  Define and explain the terminologies

Define and explain the terminologies -

  How about with block transfer is used

If a clock has a speed of 250Mhz and it requires 3 clock cycles to transfer a word, how long will it take to transfer 6 words if a block transfer is not used?

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