From 0dcb52765f518b84a38925579eb026ba3d669c2a Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 15 Dec 2018 16:50:20 -0700 Subject: [PATCH] A little more code docs updating. --- Codecademy.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Codecademy.md b/Codecademy.md index 66c4f7f..e73c8ba 100644 --- a/Codecademy.md +++ b/Codecademy.md @@ -121,6 +121,14 @@ If it uses dot notation like `.lower()`, it works exclusively on strings. `"Ten times a cow is equal to " + result + " with 10 times as many breeding opportunities."` +or + +`print(var, var2, var3)` + +or + +`string1 += string2` + ## String Formatting with % `"%s %s - 2020" % (month, day) # Replace %s with a variable. First the month, then the day.` @@ -163,6 +171,8 @@ total_cost = cucumbers * price_per_cucumber print(total_cost) ``` +`total_price += nice_sweater` + Cool concept from Ch2 Ex15: ```