📚 node [[week1 types expressions and variables lab]]

Writing Your First Python Code

Go to the [[Python Week 1 Main Page]] or the [[Python - Main Page]]

I've learned not to spend so much time reformating the Markdown exports of Jupyter Notebooks, so here's a link to the notebook instead

Here is a link to the Gist on Github

Estimated time needed: 25 minutes

Objectives

After completing this lab you will be able to:

  • Write basic code in Python
  • Work with various types of data in Python
  • Convert the data from one type to another
  • Use expressions and variables to perform operations

Estimated time needed: 25 min

Say "Hello" to the world in Python

When learning a new programming language, it is customary to start with an "hello world" example. As simple as it is, this one line of code will ensure that we know how to print a string in output and how to execute code within cells in a notebook.

| | 2020-08-26 | 2.0 | Lavanya | Moved lab to course repo in GitLab | | | | | | | | | | |

© IBM Corporation 2020. All rights reserved.

📖 stoas
⥱ context