Question: # Initialize 2 D array to store sales data for 3 departments and 4 quarters sales = [ [ 0 for _ in range (
# Initialize D array to store sales data for departments and quarters
sales for in range for in range
# Input sales data
for deptindex in range:
for quarterindex in range:
salesdeptindexquarterindex floatinputfEnter sales for Department chr deptindex Quarter quarterindex :
# Display sales data
print
Sales Data:"
for deptindex in range:
for quarterindex in range:
printfDepartment chr deptindex Quarter quarterindex : salesdeptindexquarterindex
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
