© 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.