<jupyter_start><jupyter_text>Exercise 1: Getting to know the order of operations<jupyter_code>(100 - 5 ** 3)/5 
6 + 15 % 4
2 ** 2 + 24 // 4<jupyter_output><empty_output><jupyter_text>Exercise 2: Integer and Float Types<jupyter_code>type(6)
type(6.0)
5 + 3.14
int(7.9999999999)
float(6)<jupyter_output><empty_output><jupyter_text>Exercise 3: Assigning Variables<jupyter_code>x = 3.0
x + 1
y = 10
y = y - 10.0
type(y)<jupyter_output><empty_output><jupyter_text>Activity 1: Assigning Values to Variables<jupyter_code>x = 14
x += 1
(x / 5) ** 2
import keyword
print(keyword.kwlist)<jupyter_output>['False', 'None', 'True', '__peg_parser__', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']<jupyter_text>Exercise 4: Variable Names<jupyter_code>first_number = 1
my_money = 1000.00<jupyter_output><empty_output><jupyter_text>Exercise 5: Multiple Variables in Python<jupyter_code>x = 5
y = 2
x + x - y ** 2
x,y = 8,5
x // y<jupyter_output><empty_output><jupyter_text>Exercise 6: Comments in Python<jupyter_code># This is a comment
# Set the variable pi equal to 3.14
pi = 3.14
pi = 3.14 # Set the variable pi equal to 3.14<jupyter_output><empty_output><jupyter_text>Activity 2: Finding a Solution Using the Pythagorean Theorem in Python<jupyter_code>"""
This document determines the Pythagorean Distance 
between three given points
"""

# Variables for three sides
x,y,z = 2,3,4

# Square each side and add them together
total = (x ** 2) + (y ** 2) + (z ** 2)

# Take the square root of the total value
value = (total ** 0.5)

# Show the distance
value<jupyter_output><empty_output><jupyter_text>Exercise 7: String Error Syntax<jupyter_code>bookstore = 'City Lights'
bookstore = "City Lights'
bookstore = "Moe's"
bookstore = 'Moe's'
bookstore = 'Moe\'s'<jupyter_output><empty_output><jupyter_text>Exercise 8: Displaying Strings<jupyter_code>greeting = 'Hello'
print(greeting)
greeting = 'Hello'
greeting
spanish_greeting = 'Hola'
print(spanish_greeting)
arabic_greeting = 'Ahlan wa sahlan'
print(arabic_greeting)<jupyter_output>Hola
Ahlan wa sahlan<jupyter_text>Exercise 9: String Concatenation<jupyter_code>spanish_greeting = 'Hola '
print(spanish_greeting + 'Senor')
greeting = 'Hello'
print(greeting * 5)
italian_greeting = 'Ciao'
print('Should we greet people with', italian_greeting,'in North Beach?')
owner = '<NAME>'
age = 100
print('The founder of City Lights Bookstore, {}, is now {} years old.'.format(owner,age))
arabic_greeting = 'Ahlan wa sahlan.'
len(arabic_greeting)<jupyter_output><empty_output><jupyter_text>Exercise 10: String Methods<jupyter_code>name = 'Jason'
name.lower()

name = 'Jason'
name.capitalize()

name = 'Jason'
name.upper()

name = 'Jason'
name.count('o')<jupyter_output><empty_output><jupyter_text>Exercise 11: Types and Casting<jupyter_code>type('5')
'5' + '7'
int('5')
int('5') + int('7')<jupyter_output><empty_output><jupyter_text>Exercise 12: The input() Function<jupyter_code># Choose a question to ask
print('What is your name?')
# Get the user input for name
name = input()
# Print a response
print('Hello, ' + name + '.')<jupyter_output>What is your name?
Hello, Darius.<jupyter_text>Activity 3: Using the input() Function to Rate Your Day<jupyter_code>print('Rate your day today so far on a scale of 1 to 10.')
rating = input()
print('You rated your day a ' + rating + '.')<jupyter_output>Rate your day today so far on a scale of 1 to 10.
You rated your day a 4.
{'fraction_non_alphanumeric': 0.14566058595909342, 'fraction_numerical': 0.03150912106135987, 'mean_word_length': 6.355691056910569, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '15', 'dir': 'jupyter-structured-clean-dedup', 'id': '381618', 'license': 'MIT', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1377, 'n_words': 368, 'path': 'Ch-1 Vital Python - Math, Strings, Conditionals, and Loops.ipynb', 'repo_name': 'DariusJennings/The-Python-Workshop', 'size': '3633'}