I need a help to write the function of python

+3 votes
asked Jan 30 by ST_ADIL
def main():
    # using keyword global allows to use the ip_List created outside of function to
    global ip_List
    
    '''
    Use ip_class to append ip_List.
    must check ip address:
        8.8.8.8
        132.216.177.160
        192.168.0.1
        205.211.140.132
        127.0.0.1
    
    use create_randam_IP() to create 1 randomly created ip address
    
    create a for loop that goes through every IP Class in the ip_List
    and then calls the unique Print() function each of the objects
    
    '''
    print("wrtitten by: {0} ID: {1}\n".format(stud_name, stud_id)) #do not change
    

    # write your code for the method here
    # start with IP Address that were given, by adding their classes to ip_List
    # then call the create_randam_IP()
    # add the random IP to ip_List
    
    
    '''
    going through the list and call the unique print method of each class
    '''
    
    for obj in ip_List:
    # calling method
        obj.Print()
        
'''
Calls the main() function
'''
main()

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...