O'Reilly logo

Learn to Program with Python 3: A Step-by-Step Guide to Programming 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 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 ...

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