There is a multiline string variable i.e. inputString = ‘Dell Display Manager’s (DDM) Easy Arrange feature lets you quickly tile and view your applications side by side across one or more connected screens for multitasking efficiency. And with the improved DDM, you’ll get even more preset layouts. The auto-restore feature remembers where you left off, so applications will go back to where you left them, even after you’ve unplugged.’ Write Python code that: a.    Prints inputString as it is. [Hint: use escape sequence]   b.    Copies inputString into inputStringNew in a way that the last sentence will become the first sentence of inputStringNew: inputStringNew = ‘The auto-restore feature remembers where you left off, so applications will go back to where you left them, even after you’ve unplugged. Dell Display Manager’s (DDM) Easy Arrange feature lets you quickly tile and view your applications side by side across one or more connected screens for multitasking efficiency. And with the improved DDM, you’ll get even more preset layouts.’ [Hint: use format() to change position]   c.    Creates another string output string from input string which is actually a slice of inputString, and prints the output string: output string  = ‘you’ll get even more preset layouts’ [Hint: use slicing operator]   d.    Applies iteration on inputString, to count characters of inputString, other than letter ‘D’

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter13: Creating A Workbook
Section: Chapter Questions
Problem 8QY
icon
Related questions
Question

There is a multiline string variable i.e.

inputString = ‘Dell Display Manager’s (DDM) Easy Arrange feature lets you quickly tile and view your applications side by side across one or more connected screens for multitasking efficiency. And with the improved DDM, you’ll get even more preset layouts. The auto-restore feature remembers where you left off, so applications will go back to where you left them, even after you’ve unplugged.

Write Python code that:

a.    Prints inputString as it is. [Hint: use escape sequence]

 

b.    Copies inputString into inputStringNew in a way that the last sentence will become the first sentence of inputStringNew:

inputStringNew = ‘The auto-restore feature remembers where you left off, so applications will go back to where you left them, even after you’ve unplugged. Dell Display Manager’s (DDM) Easy Arrange feature lets you quickly tile and view your applications side by side across one or more connected screens for multitasking efficiency. And with the improved DDM, you’ll get even more preset layouts.

[Hint: use format() to change position]

 

c.    Creates another string output string from input string which is actually a slice of inputString, and prints the output string:

output string  = ‘you’ll get even more preset layouts’

[Hint: use slicing operator]

 

d.    Applies iteration on inputString, to count characters of inputString, other than letter ‘D’

 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage