<jupyter_start><jupyter_text>Lab 2 Intro to Programming CMPT 120 Due: 02/16/2022 by MidnightThe second assignment should also be fairly simple. We’re going to be looking at the doc on getting your forked repo synced with mine. I’d advise that you download [GitHub Desktop | Simple collaboration from your desktop.](https://desktop.github.com/) Considering dealing with terminals has been a little tedious. As shown in class it is possible to do these things in the terminal. We may want to revisit that a little further into class when people are a little more comfortable if they’d like.After doing so we need to clone your forked repo and then sync it. To do this you can follow the steps here. [Cloning a repository from GitHub to GitHub Desktop.](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/cloning-a-repository-from-github-to-github-desktop) After you clone you can look into this guide to [How to sync your forked repo with original Repo in Github Desktop.](https://stackoverflow.com/questions/46110615/how-to-sync-your-forked-repo-with-original-repo-in-github-desktop)If you didn't install Visual Studio Code in the last lab the link is [here](https://code.visualstudio.com)When you open it you'll wanna click the 4 boxes on the left bar. Type in Python and install that plugin. That will get the Jupyter support that we need.![PythonExtension](../../Assets/Images/Extensions.png)Once this is done we can open our GitHub repo which is usually downloaded to our Documents folder. I usually will open it at the folder level!![OpenFolder](../../Assets/Images/OpenFolder.png)From here open this lab in VSCode and fill out the lab below with your answers! (You may have to select a kernel, you should only have one and it'll be python unlike my screenshot) If you need to change it click the box icon in the upper right corner of the screen. (in my screenshot it has 3.9.0 next to it)![Kernels](../../Assets/Images/Kernels.png)After that you’ll need to push the changes that you synced so that I can see them and you can get credit and that is here. [Pushing changes to GitHub](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/pushing-changes-to-github)Grading will be based on content, accuracy, thoroughness, and adherence to instructions for credit up to a single homework assignment. First submit the assignment by pushing your synced repository to your GitHub account on [https://github.com/](https://github.com/). You’ll know if you did this properly because you’ll have the Lesson Two notebook. You’ll also have the file for the lab. Second, on iLearn, submit the assignment with a screenshot of your synced repo on Github. Ok for this lab we're going to reiterate a lot of the things that we went over in class.Our Goals are:- Defining variables- Using math- Manipulating variables- Changing data types- Playing with lists<jupyter_code># Define 4 variables, one of each type listed: [Integer, String, Boolean, Float]. Print all 4.
age = 2147483650
greeting = 'Hello Class'
is_hungry = False
height = 69.3

print(age)
print(greeting)
print(is_hungry)
print(height)
# With whatever variables you'd like demonstrate the following: [Addition, Subtraction, Division, Multiplication, Modulo]. Print all 5.
age = 12
old = 70
young = 5
baby = 1

print(age+age)
print(old-young)
print(baby/old)
print(age*old)
# Using 2 variables and addition print the number 57
uno = 17
dos = 40

print(uno + dos)

# Change this variable to a string and print
number_into_string = '37'
# Change this variable to a integer and print
string_into_number = 10
# Change this variable to a float and print
string_into_float = 299.99
# Change this variable to a boolean and print
number_into_boolean = True

# Make me a list of any type
numbers = [1,2,3,4]
letters = ["a","b","c"]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07674418604651163, 'fraction_numerical': 0.017054263565891473, 'mean_word_length': 4.585858585858586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '43543', 'license': 'MIT', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1045, 'n_words': 528, 'path': 'JupyterNotebooks/Labs/Lab 2.ipynb', 'repo_name': 'Crocster/CMPT-120L-201-22S', 'size': '3870'}