Book Image

Sage Beginner's Guide

By : Craig Finch
1 (1)
Book Image

Sage Beginner's Guide

1 (1)
By: Craig Finch

Overview of this book

Table of Contents (17 chapters)
Sage Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Introducing Python and Sage

By now, you have learned the basic principles of interacting with Sage. We will now unlock the power of the Python programming language. The programmatic features of Python complement the mathematical features of Sage.

In this chapter, we shall learn how to:

  • Use lists and tuples to store sequential data

  • Iterate with loops

  • Construct logical tests with "if" statements

  • Read and write data files

  • Store heterogeneous data in dictionaries

So, let's start programming…