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:
- Open Visual Studio Code and create a new Jupyter notebook (.ipynb file).
- In the first code cell, add code to print “Hello, World!”.
- 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:
- In a new code cell, add code to print your name using the
print()
function. - Create another Markdown cell with a title, your name, the date, and a brief description of what this code does.