<jupyter_start><jupyter_text>this next cell is an example of a string variable* bullet point 1* bullet point 2$$y = mx + b$$ $$ \sum_{r \in R} P(R=r|U) $$<jupyter_code>y = 'hello'
type(y)
print(y)

x
type(x)
5 +6 
x = 5
y = 6

x*y
y
x
a = True
b = False
type(a), type(b)
if x < y:
    print('true!')
def myotherfunc():
    print('I got into the other function')
def myfunc(x):
    print("I'm in the function!")
    myotherfunc()
    return x+2, 'hello!', x+5
r1, r2, r3 = myfunc(8)
r1
r2
r3
def func2(y, x=5, z=6):
    return y+x*z
func2(3,z=7)
mylist = [1,2,3,4,'boise','state',['e1','e2']]
print(mylist[5])
mylist.append(10)

mylist
mydict = {'key1':'value1', 'key2':'value2', 'key3':[3,2]}
print(mydict['key3'])
mydict['key4'] = [1,2,'three']
mydict
#for item in mylist:
#  print(item)
    
for item in mydict:
    print(item, mydict[item])<jupyter_output>key1 value1
key2 value2
key3 [3, 2]
key4 [1, 2, 'three']<jupyter_text>it would be better not to do this:<jupyter_code>def func3(x='hello', j=[]):
    j.append(x)
    print(j)
func3('ahoy there')<jupyter_output>['ahoy there']
{'fraction_non_alphanumeric': 0.19667590027700832, 'fraction_numerical': 0.048938134810710986, 'mean_word_length': 4.645833333333333, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '491693', 'license': 'MIT', 'n_tokens_mistral': 507, 'n_tokens_neox': 501, 'n_words': 128, 'path': 'introds/classes/L2-PythonJupyter/python_intro.ipynb', 'repo_name': 'gcaracas/bsu', 'size': '1083'}