4141
4242f'{ double_line_break } { indent } Please type your grocery list item price: $' , # index 3
4343
44- f'{ double_line_break } { indent } You have' , # indext 4
44+ f'{ double_line_break } { indent } { text_colours [ 5 ] } You have' , # indext 4
4545
4646'items in your grocery list.' , # index 5
4747
5252f'''{ single_line_break } { indent } Do you wish to add more items to your grocery list?
5353{ single_line_break } { indent } Press "y" or "n" to confirm: ''' , # index 8
5454
55- f'{ single_line_break } { indent } thank you for choosing grocery list creator ... \
56- press enter to exit.' , # index 9
55+ f'{ single_line_break } { indent } Thank you for choosing Grocery List Creator ... \
56+ Press "Enter" to exit.' , # index 9
5757]
5858
5959user_input_item_data = [ ]
@@ -80,7 +80,7 @@ def items_list():
8080
8181 try :
8282 os .system (clear_screen )
83- item_price = float (input (text_colours [ 5 ] + sentence [0 ].title ()
83+ item_price = float (input (sentence [0 ].title ()
8484 + sentence [1 ]+ sentence [3 ]).strip ())
8585 user_input_price_data .append (item_price )
8686 except ValueError :
@@ -101,7 +101,7 @@ def items_list():
101101
102102 total_sum = user_input_price_data
103103
104- print (f'{ sentence [7 ]} ${ sum (total_sum )/ decimal_point } ' ,
104+ print (f'{ sentence [7 ]} { text_colours [ 1 ] } ${ sum (total_sum )/ decimal_point } ' ,
105105 sentence [4 ],len (item ),sentence [5 ])
106106
107107 grocery_list = input (sentence [8 ]).lower ().strip ()
@@ -116,4 +116,4 @@ def items_list():
116116
117117items_list ()
118118os .system (clear_screen )
119- input (sentence [9 ]. title () )
119+ input (text_colours [ 6 ] + sentence [9 ])
0 commit comments