diff --git a/kjg/python-the-hard-way/e6.py b/kjg/python-the-hard-way/e6.py new file mode 100644 index 0000000..b850e43 --- /dev/null +++ b/kjg/python-the-hard-way/e6.py @@ -0,0 +1,22 @@ +types_of_people = 10 +x = f"There are {types_of_people} types of people." + +binary = "binary" +do_not = "don't" +y = f"Those who know {binary} and those who {do_not}." + +print(x) +print(y) + +print(f"I said: {x}") +print(f"I also said: '{y}'") + +hilarious = False +joke_evaluation = "Isn't that joke so funny?! {}" + +print(joke_evaluation.format(hilarious)) + +w = "This is the left side of..." +e = "a string with a right side." + +print(w + e) diff --git a/kjg/python.org b/kjg/python.org index 5c59d47..7e14ff7 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -52,3 +52,10 @@ Actually that's not too heavy. He's got Blue eyes and Brown hair. His teeth are usually White depending on the coffee. If I add 35, 74, and 180 I get 289. +**** ex6 +There are 10 types of people. +Those who know binary and those who don't. +I said: There are 10 types of people. +I also said: 'Those who know binary and those who don't.' +Isn't that joke so funny?! False +This is the left side of...a string with a right side.