obrazky
-

JSON

  1. Save the following dictionary into a JSON file called data.json, then load it from the file and print the names of all movies.

     movies = {
         "movies": [
             {"title": "Matrix", "year": 1999},
             {"title": "Inception", "year": 2010},
             {"title": "Interstellar", "year": 2014}
         ]
     }
    
  2. Download the file ludia.json and create a program that:

  • searches for people by name
  • searches for people by age
  • searches for people by part of their name
  • searches for people with the same name and age
  • prints a list of people with the same interests
  • prints this list of people sorted in alphabetical order
-
Copyright © 2008-2026 Miroslava Valíková