官术网_书友最值得收藏!

Modifying the print_output() function

This function is identical to the previous iteration, with the exception of the addition of the newline character \n on line 101. This helps separate entries in the console's output with an extra space. When iterating through the code, we will find that not all functions need updating to improve the user experience, accuracy, or efficiency of the code. Only by modifying an existing function will some sort of benefit be achieved:

093 def print_output(usb_name, usb_date):
094 """
095 Print the information discovered
096 :param usb_name: String USB Name to print
097 :param usb_date: String USB Date to print
098 :return: None
099 """
100 print('Device: {}'.format(usb_name))
101 print('First Install: {}\n'.format(usb_date))
主站蜘蛛池模板: 武平县| 禄劝| 资阳市| 新巴尔虎右旗| 佳木斯市| 德令哈市| 丽江市| 临湘市| 张家港市| 苍梧县| 江西省| 于田县| 灌南县| 思南县| 惠州市| 普兰店市| 柳州市| 阿勒泰市| 南康市| 海丰县| 阜城县| 安庆市| 丰顺县| 红安县| 合阳县| 江都市| 灵璧县| 永新县| 五大连池市| 台南市| 大名县| 江城| 西贡区| 榆林市| 汝阳县| 武清区| 兴仁县| 建湖县| 拉萨市| 泰安市| 云霄县|