1/19
A set of QUESTION_AND_ANSWER flashcards covering key concepts from the module: programming tools, Python and Jupyter Notebook, installation options, creating and running notebooks, basic commands, notebook cells, and related tips.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What are programming tools?
Software applications that help you write, test, and debug code; they include code editors/IDEs (e.g., Visual Studio Code, PyCharm), interpreters/compilers (e.g., Python), command-line interfaces, and debuggers/terminals.
Which tools will be used in this course for programming?
Python (a beginner-friendly language) and Jupyter Notebook (an interactive tool for writing and running Python code).
Why is Python considered beginner-friendly?
Because of its simple and readable syntax and its use by both beginners and professionals.
What is Jupyter Notebook used for?
An interactive tool for writing and running Python code, allowing you to add explanations beside code and see immediate output.
What is a 'cell' in Jupyter Notebook?
A unit where you write and test code; code cells execute code, while Markdown cells hold notes or explanations.
What does the 'Run' button do in Jupyter Notebook?
Executes the currently selected cell.
What is a Markdown cell?
A cell used to add notes, titles, or explanations (optional).
What is the basic command to print 'Welcome to Python!'?
print("Welcome to Python!")
How do you declare variables and print their sum in Python (as shown in the notes)?
x = 5; y = 3; print("The sum is:", x + y)
How can you modify the output in the basic command to see different results?
Edit the numbers assigned to x and y and run the code again.
How do you create a new notebook in Jupyter Notebook?
Click New > Python 3 (ipykernel) to create a notebook with empty cells.
How do you run code in a Jupyter cell?
Click inside a cell, type code, and press Shift + Enter.
What are the steps to install Jupyter Notebook via Anaconda?
Go to the Anaconda distribution page, download for your OS, install with default settings, open Anaconda Navigator, and launch Jupyter Notebook (Anaconda installs Python and Jupyter in one package).
What are the steps for manual installation of Python and Jupyter Notebook?
Install Python from python.org, open the terminal/command prompt, run 'pip install notebook', then run 'jupyter notebook'.
What is a quick start to create your first notebook in Jupyter?
New > Python 3 (ipykernel); you’ll see an empty notebook; type code in a cell and press Shift+Enter to run.
What is a typical content of a code cell in a notebook (example shown)?
You write Python code such as print("Hello, world!").
What is the purpose of a Markdown cell in a notebook?
To add notes, titles, or explanations (optional).
What is the example bonus suggestion when starting a notebook?
Add a Markdown cell at the top with your name and today’s date.
What is a common reminder about saving progress in notebooks?
Always save your progress.
What does the flowchart tip suggest about structure?
Every flowchart should start with a Start symbol and end with an End symbol.