Your first exercise in Python

Introduction

Welcome to your first Python exercise! In this exercise, you’ll learn how to write your first Python code in a Jupyter notebook using Visual Studio Code.

Task 1: Print “Hello, World!”

Your first task is to write a simple Python code that prints “Hello, World!” to the screen.

Steps:

  1. Open Visual Studio Code and create a new Jupyter notebook (.ipynb file).
  2. In the first code cell, add code to print “Hello, World!”.
  3. Next, create a new Markdown cell containing a title, the author’s name, the date, and a brief description of what the code does.

Task 2: Print Your Name

For your second task, you will create a simple Python code that prints your name to the screen.

Steps:

  1. In a new code cell, add code to print your name using the print() function.
  2. Create another Markdown cell with a title, your name, the date, and a brief description of what this code does.

Updated: