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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
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
DOI: https://doi.org/10.1007/978-3-030-78055-5_2
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-78054-8
Online ISBN: 978-3-030-78055-5
eBook Packages: Earth and Environmental ScienceEarth and Environmental Science (R0)