<jupyter_start><jupyter_text>q1<jupyter_code>my_name = "celia"
print(my_name)<jupyter_output>celia<jupyter_text>q2<jupyter_code>my_id=1234
print(my_id)<jupyter_output>1234<jupyter_text>q3<jupyter_code>my_id_str = "1234"
print(my_id_str)<jupyter_output>1234<jupyter_text>q4<jupyter_code>print(my_name + my_id)<jupyter_output><empty_output><jupyter_text>It did not work because you can not combine two different types of code: an integer and a string cannot be successfully combined. my_name is a string and my_id is an integer.  q5<jupyter_code>print (my_name + my_id_str)<jupyter_output>celia1234<jupyter_text>It worked because both my_name and my_id_str are both strings.   q6<jupyter_code>hstr = 'hello world.This is my first python string.'
print (hstr.split('.'))<jupyter_output>['hello world', 'This is my first python string', '']<jupyter_text>q7<jupyter_code>str_list=['a','b','c','d','e']
str_list.sort()
print(str_list)<jupyter_output>['a', 'b', 'c', 'd', 'e']<jupyter_text>q8<jupyter_code>str_list.append('f')
print (str_list)<jupyter_output>['a', 'b', 'c', 'd', 'e', 'f']<jupyter_text>q9<jupyter_code>str_list.remove('d')
print(str_list)<jupyter_output>['a', 'b', 'c', 'e', 'f']<jupyter_text>q10<jupyter_code>print(str_list[2])<jupyter_output>c<jupyter_text>q11<jupyter_code>num_list = ['12', '32', '43', '35']
print (str_list +num_list)<jupyter_output>['a', 'b', 'c', 'e', 'f', '12', '32', '43', '35']<jupyter_text>q12<jupyter_code>my_dict= { 'name': 'celia', 'id': 'hinesct' }
print (my_dict)<jupyter_output>{'name': 'celia', 'id': 'hinesct'}<jupyter_text>q13<jupyter_code>my_dict['name']= 'hines'
print(my_dict)<jupyter_output>{'name': 'hines', 'id': 'hinesct'}<jupyter_text>q14<jupyter_code>print (my_dict['id'])<jupyter_output>hinesct<jupyter_text>q15<jupyter_code>my_dict['id']='5678'
print (my_dict)<jupyter_output>{'name': 'hines', 'id': '5678'}<jupyter_text>q16<jupyter_code>my_dict['num_list']=num_list
print (my_dict)<jupyter_output>{'name': 'hines', 'id': '5678', 'num_list': ['12', '32', '43', '35']}
{'fraction_non_alphanumeric': 0.1966403162055336, 'fraction_numerical': 0.039525691699604744, 'mean_word_length': 12.322368421052632, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, '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': '16', 'dir': 'jupyter-structured-clean-dedup', 'id': '537251', 'license': 'MIT', 'n_tokens_mistral': 976, 'n_tokens_neox': 922, 'n_words': 132, 'path': 'Lab2 .ipynb', 'repo_name': 'celiahines/IA-241', 'size': '2024'}