Write a function called printcharacters that accepts a


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!)

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function called printcharacters that accepts a
Reference No:- TGS02908441

Expected delivery within 24 Hours