Click here to Skip to main content
15,886,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Intially trying with 5 numbers

What I have tried:

mac_list ="aa:bb:cc:dd:"
for i in range (0,5,1):
for j in range(0,5,1):
print("aa:bb:cc:dd:+

stuck how to append the num(i.e i,j) to the mac address eg - aa:bb:cc:dd:01
Posted
Updated 7-Nov-17 9:35am

1 solution

Python
mac_list ="aa:bb:cc:dd:"
for i in range(0,5):
    for j in range(0,5):
        print(mac_list,i,j, sep='')

See also: 7. Input and Output — Python 3.6.3 documentation[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900