<jupyter_start><jupyter_text>Python for Scientific Computing Dr. <NAME> University of Luxembourg  Lecture 1 Getting up and running with Python 15 mins 1. Open a web browser and go to https://colab.research.google.com There are two main ways of *writing* Python programs:1. Write *scripts* (programs), *execute* (run) them with the intepreter.2. **Write interactive Jupyter notebooks.**There are two main ways of *running* Python programs:1. Run them locally on your own computer.2. **Run them remotely using a cloud-based service.** Let's write our first Jupyter notebook and execute a command within it.<jupyter_code>print("Hello world")<jupyter_output>Hello world<jupyter_text>Type the command into the *code cell*.Execute the *code cell* with *Shift+Enter* or *Ctrl+Enter*.The *Python kernel* executes the code.The *output* is returned and displayed in a box beneath the input. *Exercise*1. What is the output of the following command?2. Change the code so it prints "Their name is x" where x is the name of the person sitting next to you.<jupyter_code>name = "Jack"
print(f"My name is {name}")<jupyter_output>My name is Jack
{'fraction_non_alphanumeric': 0.08599290780141844, 'fraction_numerical': 0.008865248226950355, 'mean_word_length': 5.272222222222222, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '329268', 'license': 'MIT', 'n_tokens_mistral': 331, 'n_tokens_neox': 318, 'n_words': 154, 'path': 'notebooks/01_getting_up_and_running.ipynb', 'repo_name': 'jhale/scientific-python', 'size': '1134'}