Skip to content

Commit 0d17a0c

Browse files
author
PiezoDelRey
committed
Delete undesirable code
1 parent ed31ff7 commit 0d17a0c

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

Task 3.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@
115115
highest_price_item_number_list.append(index_number+1)
116116
sold_status_list[x] = "yes"
117117
total_price = total_price + int(highest_bid_price_list[x]*1.1)
118-
119-
# fee = [0]*len(highest_price_item_number_list)
120-
# total_fee_list.append((1 + 0.1) * int(highest_bid_price_list[x]))
121-
# total_fee_string = str(int(total_fee_list[x]))
122-
# highest_item_number = str(x + 1)
123-
# print("The total price of " + highest_item_number + " is $"+total_fee_string)
124118

125119
print("\n\nTotal price is $"+str(total_price))
126120

@@ -132,15 +126,16 @@
132126
under_reserve_price_index_string = str(under_reserve_price_index)
133127
underbid_price = highest_bid_price_list[under_reserve_price_index-1]
134128
underbid_price_string = str(underbid_price)
135-
print("Item Number "+under_reserve_price_index_string+" has a highest price of $"+underbid_price_string+". But the price is lower than the reserve price.")
129+
print("Item Number "+under_reserve_price_index_string+" has a highest price of $"+underbid_price_string +
130+
". But the price is lower than the reserve price.")
136131

137132
if len(no_bid_item_number_list) != 0:
138133
print("\n")
139134

140135
for z in range(len(no_bid_item_number_list)):
141136
no_bid_item_number_index = no_bid_item_number_list[z]
142137
no_bid_item_number_index_string = str(no_bid_item_number_index)
143-
print("Item Number "+no_bid_item_number_index_string+" has no bid at all")
138+
print("Item Number " + no_bid_item_number_index_string+" has no bid at all")
144139

145140
sold_item_quantity = str(len(highest_price_item_number_list))
146141
under_reserve_price_item_quantity = str(len(under_reserve_price_item_number_list))
@@ -149,4 +144,4 @@
149144
print()
150145
print(sold_item_quantity+" is/are sold.")
151146
print(under_reserve_price_item_quantity+" is/are lower than reserve price.")
152-
print(no_bid_quantity+ " has/have no bids.")
147+
print(no_bid_quantity + " has/have no bids.")

0 commit comments

Comments
 (0)