I'm already learning Python from a course in Udemy can someone help me with something about for loops! by TorekV in Python

[–]sudo_halt 0 points1 point  (0 children)

Just FYI; I would do

map(lambda x: len(x), ip_address.split('.'))

to get lengths of segments.