From ae9e8d4c7099d00ad510cce3574dc9a5ee2a68f0 Mon Sep 17 00:00:00 2001 From: Cody Hennesy Date: Wed, 7 Oct 2026 15:01:59 -0700 Subject: [PATCH] Add print statements for type() output Updated the formatting of type() example output for clarity. Fixes #186 --- episodes/variables.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/episodes/variables.md b/episodes/variables.md index c0d77f2b..7ed3f3c6 100644 --- a/episodes/variables.md +++ b/episodes/variables.md @@ -149,14 +149,17 @@ Everything in Python is some type of object and every Python object will be of a You can use the built-in Python function `type()` to find out an object's type. ```python -print(type(140.2), - type(age), - type(name), - type(print)) +print(type(140.2)) +print(type(age)) +print(type(name)) +print(type(print)) ``` ```output - + + + + ``` 1. 140.2 is an example of a floating point number or `float`. These are fractional numbers.