In R language, I can get an object by combining its names like:
item_1 = "apple"
get(paste0('item_', '1'))
it will return "apple"
How can I do the same thing in Python?
In Python:
item_1 = 'apple'
I want to have a function such that:
function('item_' + '1')
will return 'apple'