You are writing a Python program to automate inventory. Your first task is to read a file of inventory transactions. The file contains sales from the previous day, including the item id, price, and quantity.
The following shows a sample of data from the file:
The code must meet the following requirements:
✑ Each line of the file must be read and printed
✑ If a blank line is encountered, it must be ignored
✑ When all lines have been read, the file must be closed
You create the following code. Line numbers are included for reference only.
Which code should you write for line 05 and line 06?
A.
B.
C.
D.
chinna1523
Highly Voted 5 years agoSarah987
Most Recent 2 years, 1 month agoSarah987
2 years, 1 month agoSarah987
2 years, 1 month agosudarchary
3 years, 7 months agoqrkon
3 years, 9 months agogargaditya
4 years, 7 months agoViki2405
4 years, 7 months agoJeffJupiter
4 years, 11 months agoSatbabu
3 years, 9 months ago