© Irv Kalb 2016

Irv Kalb, Learn to Program with Python, 10.1007/978-1-4842-2172-3_3

3. Built-in Functions

Irv Kalb

(1)Mountain View, California, USA

Just as Python has a number of built-in operators (such as the plus for addition, minus for subtraction, asterisk for multiplication, etc.), Python also has 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 raw_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 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.