Starting from:

$30

IT244-Python Basics Solved


## Assignment Requirements 

For your first Python program, you will take the given statements below about Python and Python history and combine them into one paragraph, correctly formatted and corrected as noted below. The correct output is also given as an example below. 

The following statements are to be included in your program as separate strings. When adding them to your program, be sure to include any leading or trailing spaces shown. If you copy and paste the string from this document, remove the quotes and retype them in manually to be sure you get the correct set of quotes in the character set. 
You will concatenate the three strings above into one string formatted correctly with standard spacing. You will need to programmatically correct “1890’s” to “1990’s” in the first statement. Your output should appear as shown below. Note the order of the text. 

## Assignment Instructions

1. Define three variables to hold each sentence string.

      - *Hint*: Note that the third sentence mixes single and double quotes. You will need to use the backward slash (\) character ahead of the double quotes. For more on this, reference section 3.1.2. Strings in the Python 3 documentation.

      - *Reference*: Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 2: Four Types of Data / Assignment Statements / Variable Names.

2. Apply the appropriate string functions to each string variable as needed to strip leading spaces and replace 1890 with 1990.

      - *Reference*: Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 8: Built-In String Operations.

3. Print the concatenated sentences as a single paragraph to produce the expected output.

      - *Reference*: Learn to Program With Python 3: A Step-by-Step Guide to Programming, 2nd edition, Chapter 2: Print Statements; Chapter 3: Built-In Functions / Concatenation.

More products