I have a list like this:
<code>list1 = [ '000c.29e6.8fa5', 'fa16.3e9f.0c8c', 'fa16.3e70.323b' ]
</code>
<code>list1 = [ '000c.29e6.8fa5', 'fa16.3e9f.0c8c', 'fa16.3e70.323b' ]
</code>
list1 = [ '000c.29e6.8fa5', 'fa16.3e9f.0c8c', 'fa16.3e70.323b' ]
I’m going to convert them to mac addresses in format 00:0C:29:E5:8F:A5
in uppercase.
How can I do that?
I googled but found nothing. I also thought how to do, but still don’t have any clues.
I just know this:
<code>for x in list1:
x = x.replace('.', '').upper()
</code>
<code>for x in list1:
x = x.replace('.', '').upper()
</code>
for x in list1:
x = x.replace('.', '').upper()