O'Reilly logo

Learn to Program with Python by Irv Kalb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required