I've just started learning Python. The book I'm studying has the code below. I understand the general meaning and the end result but I don't understand where P
came from and what it does. Could you explain it to me, please?
parts = ['43', '44', '45\n']
numbers = [int(P) for P in parts]