Count the number of Moon rocks by type using Python

Beginner
Student
Data Scientist
Azure

Use Python to make a simple program to count the number of each type of space rock.

Learning objectives

In this module, 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

Tip

This module is part of a multimodal learning experience. Start module to see how you can follow along!

Prerequisites

  • None