Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions episodes/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<class 'float'> <class 'int'> <class 'str'> <class 'builtin_function_or_method'>
<class 'float'>
<class 'int'>
<class 'str'>
<class 'builtin_function_or_method'>
```

1. 140.2 is an example of a floating point number or `float`. These are fractional numbers.
Expand Down
Loading