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')
Blog for documenting various tasks which I would otherwise forget how to implement from scratch.
Search This Blog
Thursday, 15 November 2018
Python - Functions
We can define a function and assign values as it follows:
Subscribe to:
Comments (Atom)
-
If you need to extract IP Addresses from a text file with thousands or even millions of lines of text and you have something better to do t...
-
This script uses Nornir 2.5 and genie to return structured data and check for devices uptime and validate software versions. from nornir imp...
-
It recommended to use a virtual environment for testing. All software and libraries installed in the virtual environment will be used if th...