Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md -[jupytext 1.1.0]-> ipynb -[jupytext 1.3.0rc1]-> md #117

Merged
merged 1 commit into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Basic description of the Python programming language, Difficulty: Easy, Category: Background
:keywords: python, install, basics, scripts, interpreter, foundations
```
<!-- #endraw -->

<!-- #region -->
# Introducing the Python Programming Language
Expand Down Expand Up @@ -76,7 +76,7 @@ Do not use word processing programs, like Microsoft Word, to write code. They wi

Now that you have a Python script, how do you get the computer to read it and follow its instructions? You will need to install a **Python interpreter** on your computer to accomplish this. This is what people mean, whether they know it or not, when they tell you to "install Python" on your computer.

<!-- #region -->

## What is a Python Interpreter and What Does it Mean to "Install Python"?

A Python interpreter is any computer program that is capable of doing the following:
Expand Down Expand Up @@ -117,7 +117,6 @@ this will instruct the Python interpreter program `python` to read your text fil
In practice, you will be able to simply execute `python my_script.py` in any directory, and your computer will know where to look to find the `python` program. This will be set up during the installation process.

It may be confusing to think that the Python language is interpreted by using a program written in another language. How, then, is that language interpreted? The answer, in the case of CPython, is that C code need not be interpreted; programs exist for Windows, Mac, and Linux that can translate C code directly into machine instructions.
<!-- #endregion -->

<!-- #region -->
## Why Python?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Integrated Development Environments, Difficulty: Easy, Category: Tools
:keywords: python, introduction, IDE, PyCharm, VSCode, Jupyter, recommendation, tools
```
<!-- #endraw -->

# Setting Up a Development Environment
## What You Will Learn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Informal Introduction to Python, Difficulty: Easy, Category: Tutorial
:keywords: python, installation, script, introduction, ipython, console, quick introduction
```
<!-- #endraw -->

# An Informal Introduction to Python
Now that you have the Anaconda distribution of Python installed on your machine, let's write some simple Python code! We are going to forego writing a full Python script for now, and instead make use of a convenient tool for doing quick code scratchwork. The IPython console was installed as a part of Anaconda; it will allow us to build incrementally off of snippets of code, instead of having to execute an entire script all at once.
Expand Down
11 changes: 5 additions & 6 deletions Python/Module1_GettingStartedWithPython/Installing_Python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Installing Python with Anaconda, Difficulty: Easy, Category: Tutorial
:keywords: python, anaconda, instructions, environments, beginner, data science, introduction
```
<!-- #endraw -->

## Installing Python

Expand Down Expand Up @@ -46,7 +46,7 @@ Some of the packages provided by Anaconda, like NumPy, have been [optimized](htt

You will need to know how to open a terminal (cmd.exe for Windows users) on your computer, and how to navigate between directories in the terminal. If you do not know how to do this, read a 'how-to' for whatever operating system you are using.

<!-- #region -->

### What did this just do to my computer?

This created a directory called `Anaconda3` (or some variant of this) on your computer, which contains all of the files associated with the CPython interpreter, all of the modules in Python's standard library, the aforementioned 3rd party packages that come as part of the Anaconda distribution (e.g. NumPy, SciPy, Jupyter, iPython), and the `conda` package manager. It also contains the executable files for all of these applications. The default install location for Anaconda is:
Expand Down Expand Up @@ -101,4 +101,3 @@ And like that, conda environments give you all of the powers of a necromancer, a
Conda environments have more uses than simply switching back and forth between Python 3 and 2. Many people like to make a new conda environment for every major project that they work on, so that they can freely install any dependencies that are needed for that particular project, without worrying about conflicts with their other work. You should be keen on making regular use of conda environments.

It is highly recommended that you take time to read through [this tutorial on managing conda environments](https://conda.io/docs/user-guide/tasks/manage-environments.html).
<!-- #endregion -->
8 changes: 4 additions & 4 deletions Python/Module1_GettingStartedWithPython/Jupyter_Notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Jupyter notebooks, Difficulty: Easy, Category: Tutorial
:keywords: jupyter, notebook, kernel, basics, server, console, command line, plot, beginner, data science
```
<!-- #endraw -->

# Jupyter Notebooks
In recent years, the Jupyter Notebook has become a massively popular tool for doing research-oriented work in Python and other languages alike. Its emergence marked a paradigm shift in the way data science is conducted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
Expand Down
8 changes: 4 additions & 4 deletions Python/Module1_GettingStartedWithPython/SiteFormatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Overview of formatting in Python Like You Mean It, Difficulty: Easy, Category: Instructions
:keywords: overview, formatting, background, code block, console style
```
<!-- #endraw -->

<!-- #region -->
# A Quick Guide to Formatting
Expand Down
11 changes: 5 additions & 6 deletions Python/Module2_EssentialsOfPython/Basic_Objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Basics of Python Objects, Difficulty: Easy, Category: Section
:keywords: integers, booleans, floats, floating point precision, lists, strings, fundamentals
```
<!-- #endraw -->

<!-- #region -->
# Basic Object Types
Expand Down Expand Up @@ -805,7 +805,7 @@ To answer some of the following questions, you will need to peruse the documenta

3\. Remove the whitespace from both ends of: `" basket "`

<!-- #region -->
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A <!-- #region --> is removed here


4\. Create a string that will print as (the second line begins with a tab-character):
```
Hello
Expand All @@ -817,7 +817,6 @@ Hello
6\. Only kids 13 and up are allowed to see Wayne's World. Given the variables `name` (a string) and `age` (an integer), use an f-string that will display: "NAME is old enough to watch the movie: BOOL", where NAME is to be replaced with the kid's name, and BOOL should be `True` if the kid is at least 13 years old, and `False` otherwise.

</div>
<!-- #endregion -->
Copy link
Owner Author

@rsokl rsokl Nov 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A <!-- #endregion --> is removed here. There are several instances of these - they all occur amidst <div></div> blocks.


<!-- #region -->
## Lists
Expand Down
8 changes: 4 additions & 4 deletions Python/Module2_EssentialsOfPython/ConditionalStatements.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Conditional Statements, Difficulty: Easy, Category: Section
:keywords: if, else, elif, inline if, switch statement, comparison operator, bool, truth, is operator
```
<!-- #endraw -->


# Conditional Statements
Expand Down
8 changes: 4 additions & 4 deletions Python/Module2_EssentialsOfPython/DataStructures.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Data Structures, Difficulty: Medium, Category: Section
:keywords: Big-O, complexity, efficiency, algorithm, interview preparation, list, tuple, sequence
```
<!-- #endraw -->

<!-- #region -->
# Data Structures (Part I): Introduction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Introduction to Sets, Difficulty: Medium, Category: Section
:keywords: set, complexity, comparison, union, intersection, membership, hashing, lookup, interview preparation
```
<!-- #endraw -->


# Data Structures (Part III): Sets & the Collections Module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Introduction to Dictionaries, Difficulty: Medium, Category: Section
:keywords: dictionary, complexity, key, value, iteration, get item, hashing, lookup, interview preparation
```
<!-- #endraw -->

# Data Structures (Part II): Dictionaries
Python's dictionary allows you to store key-value pairs, and then pass the dictionary a key to quickly retrieve its corresponding value. Specifically, you construct the dictionary by specifying one-way mappings from key-objects to value-objects. **Each key must map to exactly one value**, meaning that a key must be unique.
Expand Down
8 changes: 4 additions & 4 deletions Python/Module2_EssentialsOfPython/ForLoops.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Contorl flow with for-loops and while-loops, Difficulty: Easy, Category: Section
:keywords: for-loop, while-loop, break, control flow, basic programming
```
<!-- #endraw -->

# For-Loops and While-Loops
In this section, we will introduce the essential "for-loop" control flow paradigm along with the formal definition of an "iterable". The utility of these items cannot be understated. Moving forward, you will likely find use for these concepts in nearly every piece of Python code that you write!
Expand Down
11 changes: 5 additions & 6 deletions Python/Module2_EssentialsOfPython/Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.1'
jupytext_version: 1.1.0-rc0
format_version: '1.2'
jupytext_version: 1.3.0rc1
kernelspec:
display_name: Python 3
language: python
name: python3
---

```raw_mimetype="text/restructuredtext"
<!-- #raw raw_mimetype="text/restructuredtext" -->
.. meta::
:description: Topic: Functions and Function Signatures, Difficulty: Medium, Category: Section
:keywords: functions, *args, **kwargs, signature, default parameter, docstring, return, vowel count, syntax, basics
```
<!-- #endraw -->

<!-- #region -->
# Basics of Functions
Expand Down Expand Up @@ -68,7 +68,7 @@ In this section, we will learn about the syntax for defining and calling functio
A Python **function** is an object that encapsulates code. *Calling* the function will execute the encapsulated code and *return* an object. A function can be defined so that it accepts *arguments*, which are objects that are to be passed to the encapsulated code.
</div>

<!-- #region -->

## The `def` Statement
Similar to `if`, `else`, and `for`, the `def` statement is reserved by the Python language to signify the definition of functions (and a few other things that we'll cover later). The following is the general syntax for defining a Python function:

Expand All @@ -88,7 +88,6 @@ def <function name>(<function signature>):
The `return` statement is also reserved by Python. It denotes the end of a function; if reached, a `return` statement immediately concludes the execution of the function and returns the specified object.

Note that, like an if-statement and a for-loop, the `def` statment must end in a colon and the body of the function is [delimited by whitespace](https://www.pythonlikeyoumeanit.com/Module2_EssentialsOfPython/Introduction.html#Python-Uses-Whitespace-to-Delimit-Scope):
<!-- #endregion -->

<!-- #region -->
```python
Expand Down
Loading