#Napisz funkcje, ktora zapyta o numer ksiazki i wyswietli film wraz z ocena

list1 = []
number = int(input("How many files "))

for i in range(number):
    book = input("Name of the " + str(i+1) + " book ")
    film = input("Name of " + book + " grade film ")
    list1.append([book, film])

user_numb = int(input("Give the number of the book "))

if user_numb > number:
    print("Wrong number")
else:
    print(list1[user_numb][1])
982135a3a493fea0e7f4bbf71952951e02d1173d
<mask token>

<mask token>
for i in range(number):
    book = input('Name of the ' + str(i + 1) + ' book ')
    film = input('Name of ' + book + ' grade film ')
    list1.append([book, film])
<mask token>
if user_numb > number:
    print('Wrong number')
else:
    print(list1[user_numb][1])

list1 = []
number = int(input('How many files '))
for i in range(number):
    book = input('Name of the ' + str(i + 1) + ' book ')
    film = input('Name of ' + book + ' grade film ')
    list1.append([book, film])
user_numb = int(input('Give the number of the book '))
if user_numb > number:
    print('Wrong number')
else:
    print(list1[user_numb][1])

#Napisz funkcje, ktora zapyta o numer ksiazki i wyswietli film wraz z ocena

list1 = []
number = int(input("How many files "))

for i in range(number):
    book = input("Name of the " + str(i+1) + " book ")
    film = input("Name of " + book + " grade film ")
    list1.append([book, film])

user_numb = int(input("Give the number of the book "))

if user_numb > number:
    print("Wrong number")
else:
    print(list1[user_numb][1])