© Irv Kalb 2018
Irv KalbLearn to Program with Python 3https://doi.org/10.1007/978-1-4842-3879-0_3

3. Built-in Functions

Irv Kalb1 
(1)
Mountain View, California, USA
 

Just as Python has a number of built-in operators (such as + for addition, - for subtraction, * for multiplication, and so on), it also comes with a number of what are called built-in functions.

This chapter discusses the following topics:
  • Built-in functions

  • Using a function/function call

  • Arguments

  • Getting a result back from a function

  • The type function

  • Getting input from the user using input

  • Conversion functions: int, float, and str

  • Building our first real programs

  • Concatenation, or adding strings together

  • Another programming exercise

  • Using function calls inside assignment statements

Overview of ...

Get Learn to Program with Python 3: A Step-by-Step Guide to Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.