Introduction
You're a geologist working at the National Aeronautics and Space Administration (NASA). You're responsible for analyzing the different types of rocks found by the Artemis Rover and producing a report. The rover will send a text document of the different types of rocks, which you'll need to parse through. Your friend tells you how the Python programming language can make the task much easier than doing it by hand and more automated.
In this module, you'll build a simple notebook with Python to complete the task. Along the way, you'll apply a variety of introductory computer science strategies. You'll have the option to use Visual Studio Code with the Python extension or the Python notebook integration right here on Learn. Either way you will run the code and use pre-built functions that will help you complete this exercise.
Tip
This module is part of a multimodal learning experience. Follow along with a video walkthrough of the module in a new tab.
Tip
This module will let you learn Python in the browser using an Integrated Python Notebook experience. If you want to follow along on your local computer make sure you have Visual Studio Code with Python installed.
Learning objectives
In the following units, you'll learn about many computer science practices and use them to create an end-to-end solution. Along the way, you'll learn:
- How to write variables in the context of a program
- How to use prebuilt functions to read data from a text file
- How to create a function and call it in the context of a program
- How to write conditionals and loops in the context of a program
Prerequisites
- None