poznan = [1711505, 163780, 932461, 1164703]
warszawa = [1503333, 93311, 93181, 93268, 106958, 106956, 127649, 106801, 
    107386, 93245, 154078, 107032]
sopot = [228481, 164126, 922891]
name = eval(input('Enter name: '))
city_id = poland[name]
city_id
globals()[name]
Ask user and print a list