'''Create a show_version variable that contains the following

 show_version = "*0        CISCO881-SEC-K9       FTX0000038X    " 

Remove all leading and trailing whitespace from the string.
Split the string and extract the model and serial_number from it.
Check if 'Cisco' is contained in the model string (ignore capitalization).
Check if '881' is in the model string.
Print out both the serial number and the model.
'''

from __future__ import print_function, unicode_literals
show_version = "*0        CISCO881-SEC-K9       FTX0000038X    "
show_version = show_version.strip()
fields = show_version.split()

model = fields[1]
serial_number = fields[2]

print()

vendor_cisco = "cisco" in model.lower()
print("Checking if the model contains Cisco: {}".format(vendor_cisco))

model_881 = "881" in model
print("Checking if the model contains 881: {}".format(model_881))

print("Printing the serial number: {}".format(serial_number))
print("Printing the model name: {}".format(model))

print()
