Create your first Python program

Beginner
Developer
Visual Studio

Get started with Python by writing code to interact with end users.

Learning objectives

In this module, you will:

  • Create Python code files and execute that code inside of Visual Studio Code.
  • Write code to send a text message to the command line.
  • Write code to accept user input from the command line.
  • Understand why compilation and runtime errors occur, and what to do next.
  • Concatenate hard-coded text with user input to display custom-formatted messages to the user.
  • Perform mathematical addition on numeric data.
  • Convert alphanumeric data into numeric data and back (and learn why you need to do this).

Prerequisites

  • Python 3.x installed
  • Visual Studio Code installed
  • Python tools for Visual Studio Code installed, as well as all recommended tools, such as Pylint