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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply