I think you are referring to something like this:
self.EPG_Channel="Channel 5"
self.channel_str = ['BBC One, BBC Two, ITV, Channel 4, Channel 5']
if self.EPG_Channel == self.channel_str[-1]:
pass
1
solved Check if the element is last in the list