Page 1 of 1

How to Think Like a Computer Scientist: Learning with Python 3 Chapter 9 Exercises Question 2 2. Given the "julia_more_i

Posted: Sun Jul 10, 2022 11:25 am
by answerhappygod
How to Think Like a Computer Scientist: Learning with Python3
Chapter 9 Exercises
Question 2
2. Given the "julia_more_info" tuple from the book,replicated below:
julia_more_info = ( ("Julia", "Roberts"), (8, "October",1967),
"Actress", ("Atlanta", "Georgia"),
[ ("Duplicity", 2009),
("Notting Hill", 1999),
("Pretty Woman", 1990),
("Erin Brockovich", 2000),
("Eat Pray Love", 2010),
("Mona Lisa Smile", 2003),
("Oceans Twelve", 2004) ])
write a general function that would take a tuple like this andprint out a
formatted report. The format should look like this, with thetiles and data:
Name:
first_name last_name
Date of birth
Day: D
Month: M
Year: Y
Place of Birth
State: St
City: C
Profession: value_from_tuple
Movies:
title : year (for as many as is needed).