The program works with a one-time source of strings and builds a short report from them.
build_report(items, preview_count=2), which receives an iterator of strings.preview_count elements, then counts the number of all remaining elements from the same source.Run the program without arguments:
python main.py
preview=['A', 'B']; total=2
python main.pyClick a line and write what it prints. Explanation is optional.