Skip to main content

Python Essentials for a Geologist

  • Chapter
  • First Online:
Introduction to Python in Earth Science Data Analysis
  • 4001 Accesses

Abstract

Chapter 2 provides the basics to start working with Python. It introduces the IPython console, Python variable types, and style conventions, and then describes how to start working with Python scripts in the Spyder Integrated Development Environment (IDE). It also explains how to perform conditional statements and loops, and how to define a function and perform basic mathematical operations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.python.org/dev/peps/pep-0008/.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Maurizio Petrelli .

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Petrelli, M. (2021). Python Essentials for a Geologist. In: Introduction to Python in Earth Science Data Analysis. Springer Textbooks in Earth Sciences, Geography and Environment. Springer, Cham. https://doi.org/10.1007/978-3-030-78055-5_2

Download citation

Publish with us

Policies and ethics