Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Coding
#1
Hi , i need help to get this coding filed but i have no idea how to deal with cumulative worldwide gross ?

from imdb import IMDb
ia = IMDb()

def get_cumulative_worldwide_gross(movie):
    # How would you get the "Cumulative Worldwide Gross"?
    # Hint: It's inside the movie object "movie['box office']".
    return "0.0"

def gather_movie_info(movie):
    id = movie.movieID
    title = movie['title']
    worldwide_gross = get_cumulative_worldwide_gross(movie)
    return [
        id, title, worldwide_gross
    ]

# What information can we get about a movie?
for id in ['4154796', '4633694', '3498820', '5095030', '0317705', '3949660', '0094074', '0290747', '3480822', '9114286']:
    movie = ia.get_movie(id)
    info = gather_movie_info(movie)
    print(", ".join(info)
Reply


Messages In This Thread
Python Coding - by anh3phecan - Sep-28-2019, 05:52 AM
RE: Python Coding - by buran - Sep-28-2019, 06:29 AM
RE: Python Coding - by zipit - Sep-28-2019, 01:53 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 07:51 PM
RE: Python Coding - by buran - Sep-28-2019, 08:00 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 09:24 PM
RE: Python Coding - by buran - Sep-29-2019, 07:32 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020