<jupyter_start><jupyter_text>Ex.06 - Strings & Text------ General Instructions- You will learn how to make a bunch of variables with complex strings;- Python knows you want something to be a string when you put either "(double-quotes) or '(single-quotes);- Strings can contain any number of variables;- We'll be using "f-string" to *format* the string;- *"Python also has another kind of formatting using the .format() syntax (...). You'll see me use that sometimes when I want to apply a format to an already-created string, such as in a loop."* **(SHAW, 2017)**- Practice using short, abbreviated variable names.- Use "," (comma) inside the print command to separate different variables inside the function; Code Learned```pythonvar = xvar2 = yvar3 = "Is it possible to put some third stuff here? {}."var4 = Trueprint(f"Some stuff here {var}")print(f"Some other stuff {var2}")print(var3.format(var4))``` Math Operations| Symbol | Symbol name |Pronunciation | What it does? ||--------|:-----------:|-------------:|:-------------:|| \"=\"  |Equal to     |  Equals      |Equality       || \"+\"  |Plus         |Plus          |Addition       | Function (LaTex)------*<NAME>. (2017).* **Learn Python 3 The Hard Way** - A very simple introduction to the terrifyingly beautiful world of computers and code. Boston: Addison-Wesley.<jupyter_code>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)<jupyter_output>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.<jupyter_text>> **Study Drills**> - Apply the use of format commands with the creation of different strings:<jupyter_code>z = "Test this weird string with {}"
print(w, z.format(y), e)
print(4 * w)
var = x
var2 = y
var3 = "Is it possible to put some third stuff here? {}."
var4 = True
print(f"Some stuff here {var}")
print(f"Some other stuff {var2}")
print(var3.format(var4))<jupyter_output>Some stuff here There are 10 types of people.
Some other stuff Those who know binary and those who don't.
Is it possible to put some third stuff here? True.
{'fraction_non_alphanumeric': 0.13948082138705928, 'fraction_numerical': 0.01239829523440527, 'mean_word_length': 3.799256505576208, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '249482', 'license': 'MIT', 'n_tokens_mistral': 816, 'n_tokens_neox': 775, 'n_words': 343, 'path': '2017_SHAW/ex06_Jupyter.ipynb', 'repo_name': 'daviramalho/Learn_python', 'size': '2585'}