<jupyter_start><jupyter_text>Exercise Calculate 7 to the power of 4<jupyter_code>7**4
# split this tring into a list
s = 'Have a great day'
s.split()
# split this string on the ";" simbol
s = 'Item1; item2; 12345; ???'
s.split(';')
name = 'Avi'
topic = 'Python'
number = 99

# print in a formated way print(f'...)
# Avi is teaching Python and winning number is 99
# using the variables. change the variables to see different results
print(f'{name} is teaching {topic} and the winning number is {number}')
# try printing the number 20 from this crazy list
crazy_list = [7,100, [1,2,3], {'key1': [3,4,5], 'key2': "savta Haya", 'key3': ['a','b', [30,20,10]]}]
crazy_list[3]['key3'][2][1]
# add a new item to the list
l = [10,9,8]
l.append('kuku')
l
#pop out 'Avi' from the list and insert it to a new variable
l = [1,2,3,4,'Avi',5,6,7]
a = l.pop(4)
print(f'a is {a}')
print(f'and the updated list is \n\t{l}')
# print this sentence in all upper case
s = 'This is fun!'
print(s.upper())<jupyter_output>THIS IS FUN!
{'fraction_non_alphanumeric': 0.16831683168316833, 'fraction_numerical': 0.05148514851485148, 'mean_word_length': 4.744318181818182, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '35015', 'license': 'MIT', 'n_tokens_mistral': 417, 'n_tokens_neox': 394, 'n_words': 144, 'path': '06 - exercise.ipynb', 'repo_name': 'avisalmon/PythonPath', 'size': '1010'}