<jupyter_start><jupyter_text>Lab 00: Preliminaries Welcome to **CS 401 Advanced Studies I**!You will be using [Project Jupyter](https://jupyter.org) — a platform which provides interactive, in-browser Python development environments known as "notebooks" — to work on all self-evaluated lab assignments for this asynchronous class. This first lab is intended to briefly acquaint you with how to submit notebook assignments on Lumina. We will go over the details of how to use Jupyter notebooks for Python development in class.  Exercise 1Each lab notebook will contain one or more coding exercises followed by tests. Your job is to complete these exercises,download your result as a .ipynb file and submit the file to Lumina. Although your labs will not be graded after submissions, you will need to submit to move on to the next module. If you have any questions that you would like to discuss about each lab, you are encouraged to post your question on Piazza for further discussion. Your classmates and instructor will be more than happy to help.Because we haven't gone over any Python syntax in class yet, we'll keep this exercise really simple. To complete this exercise, change the body of the following function so that it returns a palindrome — a string that reads the same backwards as forwards — of your choice. The palindrome has to be at least 2 letters long!<jupyter_code>def my_palindrome():
    return 'abcba'<jupyter_output><empty_output><jupyter_text>After completing the implementation, you can run the following test cell by selecting it and hitting `Shift-Enter` (hold down the `Shift` key and hit `Enter`). If all tests pass, you'll see no output. Otherwise, check out the error shown, fix your implementation, and run the test cell again.<jupyter_code>pal = my_palindrome()
assert isinstance(pal, str), 'Must return a string'
assert pal.strip(), 'String should not be empty'
assert len(pal) > 1, 'String should be at least 2 letters long'
assert pal == pal[::-1], 'String is not a palindrome'<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.055800293685756244, 'fraction_numerical': 0.004894762604013705, 'mean_word_length': 5.083333333333333, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '462225', 'license': 'Apache-2.0', 'n_tokens_mistral': 530, 'n_tokens_neox': 505, 'n_words': 306, 'path': 'cs-master/cs401/Lab00-Preliminaries_done.ipynb', 'repo_name': 'Vince-Lau/my-study', 'size': '2043'}