Python Basics and Math Functions

From the study guide

Course Outline

  1. Printing Text and Output
  2. Built-in Numeric Functions
  3. Math Library Imports
  4. Python Execution Environment
  5. Python Libraries and Applications
  6. Geometry Programming Exercises

1. Printing Text and Output

★ Must-know

  • The print() function displays text, numbers, and evaluated expressions in the program output.

  • Python strings can use single quotes, double quotes, or triple quotes, and triple-quoted strings can span multiple lines.

Further detail

  • The escape sequence \n inserts a line break inside a string.

  • The expression "python"*4 repeats the string four times.

2. Built-in Numeric Functions

Key Concepts & Definitions

Read the full study guide →

Practice quiz preview

1. What does Python display when it executes `print(2+5)`?

2. Which type of Python string can contain line breaks directly within its delimiters?

3. What value does `abs(-4)` return?

Take the quiz (13 questions) →

Flashcard preview

What does the print() function display in Python output?

Text, numbers, and evaluated expressions.

Which quote styles can Python strings use?

Single, double, or triple quotes.

What can triple-quoted strings do that single or double quotes cannot?

Span multiple lines.

What does the escape sequence \n do inside a string?

Inserts a line break.

What is the result of the expression "python"*4?

The string repeated four times.

What does the built-in function abs() return?

The absolute value of a number.

See all 36 flashcards →

Frequently asked questions

What does the Python Basics and Math Functions study guide cover?

It covers the core concepts of Python Basics and Math Functions, organized by topic with the key definitions, explanations and takeaways, so it's easier to learn and remember.

Read the full study guide →

How many questions are in the Python Basics and Math Functions quiz?

The practice quiz has 13 multiple-choice questions, each with an explanation. Use it to check what you know and find your gaps.

Take the quiz (13 questions) →

How do I study Python Basics and Math Functions with flashcards?

There are 36 flashcards on Python Basics and Math Functions, with a question on the front and the answer on the back. Try to recall each answer before you flip, and let spaced repetition bring back the ones you miss.

See all 36 flashcards →

Related classes

Turn your own class notes into a study guide

Upload a PDF or paste your notes. Revizly writes a study guide, a practice quiz and flashcards in about a minute.