Python map vs List comprehension doubt

Hi all,

a = [1,2,3,4,5]

All the integers in this array can be converted into strings individually in the following 3 ways.

  1. Using str

  2. Using Map

  3. Using List Comprehension

Can i know what is the time complexity in all the 3 cases to find out which menthod is efficient. I am a bit confused in this.

Thanks in advance!

List comprehensions are supposed to be faster.

See the detailed analysis here

The post does not clearly mention which is faster. It’s confusing. Can anyone please list the Time Complexities for the above 3 methods?