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!”.

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.

Updated: