Films Adaptations

November 21, 2018

Programming Language: Python

Level: Basic

Objective: Text Format and display

Python version used : Python 3.4.3 (can be used for any 3.x.x subversions)

Task Name : Film Adaptations

Look at some of the great books turned in to great movies:

•Life of PI by Yann Martel, Paperback, £6.29

•The Lord of the Rings by J.R.R. Tolkien, Paperback,£18.74

•To Kill A Mockingbird by Harper Le, Hardcover, £12.91

•The Girl with the Dragon Tattoo by Stieg Larsson, Kindle Edition, £4.99

•Lord of the Flies by William Golding, Paperback, £5.99


Write a program that displays the names of these books in following layout with heading: Great Books turned in to Great Films.


An example runs of the program:


Great Books turned in to Great Films

Life of PI

   Yann Martel

    Paperback

    £6.29

The Lord of the Rings

    J.R.R. Tolkien

    Paperback

    £18.74

To Kill A Mockingbird

    Harper Lee

    Hardcover

    £12.91

The Girl with the Dragon Tattoo

    Stieg Larsson

    Kindle Edition

    £4.99

Lord of the Flies

    William Golding

    Paperback

    £5.99

SAMPLE SOLUTION BELOW

""
Use the built-in print() function, and use the
escape characters \n, \t

\n use it for a new line

\t use it for a tab space
"""
print("Great Books turned in to Great Films\n\
        \nLife of PI\n\tYann Martel \n\tPaperback\n\t£6.29\n\
        \ nThe Lord of the Rings\n\tJ.R.R. Tolkien\n\tPaperback\n\t£18.74\n\
        \nTo Kill A Mockingbird\n\tHarper Lee\n\tHardcover\n\t£12.91\n\
        \nThe Girl with the Dragon Tattoo\n\tStieg Larsson\n\tKindle Edition\n\t£4.99\n\
        \ nLord of the Flies\n\tWilliam Golding\n\tPaperback\n\t£5.99")



Resources others found helpful

Specific Learning Disorder

This section explains what specific learning disorders are and describes some of their key features

"How do I structure essays in English?"

Do you find essay writing a daunting task? Never quite sure where to start? Read on for simple steps to straightforward structuring!