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

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))
主站蜘蛛池模板: 阿尔山市| 黔南| 祁连县| 陆丰市| 赞皇县| 石河子市| 新安县| 临夏市| 连平县| 密云县| 阿瓦提县| 安乡县| 泗阳县| 扶余县| 韶山市| 会东县| 新野县| 常山县| 漯河市| 丰顺县| 青川县| 惠来县| 龙州县| 邹平县| 商丘市| 崇义县| 建始县| 静安区| 永修县| 邹城市| 昌邑市| 逊克县| 鸡东县| 大港区| 惠来县| 金湖县| 五台县| 三江| 崇信县| 唐河县| 黄大仙区|