Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

#Hard-Coded

starting_string = """Print this in uppercase
Print this in lowercase
Print this as a title
Print this left justified (80 characters, with ='s)
Print this right justified (80 characters, with +'s)"""

Specifications
• You should submit a single file called M8A2.py
• It should follow the submission standards outlined here: Submission Standards
• Your program must follow the directions above.
Your program should have no loops.
Tips and Tricks
• Everything you need to do this program is in the built-in string object. Don't over think it.
Hard-Coded
starting_string = """Print this in uppercase
Print this in lowercase
Print this as a title
Print this left justified (80 characters, with ='s)
Print this right justified (80 characters, with +'s)"""
expand button
Transcribed Image Text:Specifications • You should submit a single file called M8A2.py • It should follow the submission standards outlined here: Submission Standards • Your program must follow the directions above. Your program should have no loops. Tips and Tricks • Everything you need to do this program is in the built-in string object. Don't over think it. Hard-Coded starting_string = """Print this in uppercase Print this in lowercase Print this as a title Print this left justified (80 characters, with ='s) Print this right justified (80 characters, with +'s)"""
Overview
Use starting_string as the base of your program.
First, split it into a list of lines and store the result in a variable named lines_of_text). Then print out each line according to it's directions (note: there's no loop here, each line has
different instructions)
Then rejoin lines_of_text with ';' and print out the resulting string.
Then find the second 'j' in starting_string, slice it from there for the next 5 characters, and print out the result.
Expected Output
Example 1
PRINT THIS IN UPPERCASE
print this in lowercase
Print This As A Title
Print this left justified (80 characters, with ='s) ========
++++++++Print this right justified (80 characters, with +'s)
Print this in uppercase; Print this in lowercase; Print this as a title;Print this left justified (80 characters, with ='s); Print this right justified (80 characters, with +'s)
justi
expand button
Transcribed Image Text:Overview Use starting_string as the base of your program. First, split it into a list of lines and store the result in a variable named lines_of_text). Then print out each line according to it's directions (note: there's no loop here, each line has different instructions) Then rejoin lines_of_text with ';' and print out the resulting string. Then find the second 'j' in starting_string, slice it from there for the next 5 characters, and print out the result. Expected Output Example 1 PRINT THIS IN UPPERCASE print this in lowercase Print This As A Title Print this left justified (80 characters, with ='s) ======== ++++++++Print this right justified (80 characters, with +'s) Print this in uppercase; Print this in lowercase; Print this as a title;Print this left justified (80 characters, with ='s); Print this right justified (80 characters, with +'s) justi
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education