* Update 01_selection_sort.py Updated last print statement for Python 3 print function. * Update 01_countdown.py Updated print statement to print function for Python 3. * Update 05_quicksort.py Updated print statement to print function for Python 3. * Update 01_price_of_groceries.py Condensed dictionary creation into one line, edited print statement to a print function for Python 3. * Update 01_set_covering.py Changed print statement to print function for Python 3. * Update 01_binary_search.py Changed print statements to print function for Python 3.
This commit is contained in:
committed by
Aditya Bhargava
parent
a010e5c715
commit
1fa164c40e
@@ -1,7 +1,2 @@
|
||||
book = dict()
|
||||
# an apple costs 67 cents
|
||||
book["apple"] = 0.67
|
||||
# milk costs $1.49
|
||||
book["milk"] = 1.49
|
||||
book["avocado"] = 1.49
|
||||
print book
|
||||
book = {"apple": 0.67, "milk": 1.49, "avocado": 1.49}
|
||||
print(book)
|
||||
|
||||
Reference in New Issue
Block a user