fix_title: takes in a string argument that is formatted as such -- "TYPE:tHe titLe Of tHe ContENT". Should return the title, based on the following criteria: o If the type in the input argument is "book" in any style of casing, return just the title in title- case. Example: fix_title("boOK:tHe gREat gatSBY") should return 'The Great Gatsby'. o If the type in the input argument is "ARTICLE" in any style of casing, return just the title in upper-case. · Example: fix_title("ArtiCLE:commUNICatiON effICENt MachINE leaRNINg") should
fix_title: takes in a string argument that is formatted as such -- "TYPE:tHe titLe Of tHe ContENT". Should return the title, based on the following criteria: o If the type in the input argument is "book" in any style of casing, return just the title in title- case. Example: fix_title("boOK:tHe gREat gatSBY") should return 'The Great Gatsby'. o If the type in the input argument is "ARTICLE" in any style of casing, return just the title in upper-case. · Example: fix_title("ArtiCLE:commUNICatiON effICENt MachINE leaRNINg") should
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 7PE
Related questions
Question
Implement the following function:
Code should be written in python.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT