{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 4. Data Types\n", "\n", "Every value has a type, and the built-in `type` function returns the type of the result of any expression." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "One type we have encountered already is a built-in function. Python indicates that the type is a `builtin_function_or_method`; the distinction between a *function* and a *method* is not important at this stage." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "type(abs)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This chapter will explore many useful types of data." ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.5" } }, "nbformat": 4, "nbformat_minor": 2 }