Films Adaptations

November 21, 2018 Shahid K

We can learn more about text manipulations and do interesting things with it. But for now just focusing on a very simple text format.

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



The Lord of the Rings

    J.R.R. Tolkien



To Kill A Mockingbird

    Harper Lee



The Girl with the Dragon Tattoo

    Stieg Larsson

    Kindle Edition


Lord of the Flies

    William Golding




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")


Have you thought about online lessons?

Online tuition gives you access to brilliant tutors across the country
Connect one-to-one with a tutor or share your lesson with a group for 50% of the tutor's hourly rate! Find a Tutor for One-to-One Find an Online Study Group

Want to know more?

Visit Shahid's profile to find out more and send a message.

Visit Shahid's Profile

Resources others found helpful

Dyslexia: advice, further information and sources of help

This resource is good for those who want to be directed to other sources of useful reliable …

learn more

Intro about Dyslexia

This resource gives us a general overview of dyslexia and is a useful starting point for those who …

learn more

Dyslexia Symptoms in School Children

Signs and symptoms that suggest dyslexia in school children

learn more

UKMT Intermediate Maths Challenge

Interesting maths questions for students

learn more

Free resources, revision notes and past papers for students

Find revision guides, exam papers and sample essays amongst hundreds of free resources available to students.

Find resources any subjects

Maths resources | Science resources | Music resources | Spanish resources | English resources | French resources