Search This Blog

Thursday 15 November 2018

Python - Functions

We can define a function and assign values as it follows:

def print_ip(ip_addr, username, password):
    print("My IP address is: {}.format(ip_addr))
    print(username)
    print(password)

print('10.0.0.1', 'admin', 'password123')


No comments:

Post a Comment

Nornir Compliance Check