Skip to main content
Top
Published in:
Cover of the book

2019 | OriginalPaper | Chapter

1. Introduction to Programming

Author : Ben Stephenson

Published in: The Python Workbook

Publisher: Springer International Publishing

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Programming is a skill that is best learned through hands-on experience. This chapter concisely introduces the concepts that a new programmer will need to create their first programs in Python and includes 34 exercises that will let them put those concepts into practice. The particular concepts that this chapter introduces include:
  • Generating output with print statements,
  • Reading input values from the user,
  • Storing and manipulating integer, floating-point and string values,
  • Converting values from one data type to another,
  • Calling functions to perform a task, and
  • Formatting output.
Learning about these concepts and writing programs that use them effectively is an important step toward the creation of larger programs that solve more interesting problems.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Footnotes
1
Variable names are case sensitive. As a result, count, Count and COUNT are distinct variable names, despite their similarity.
 
2
Python provides several different mechanisms for formatting strings including the formatting operator, the format function and format method, template strings and, most recently, f-strings. We will use the formatting operator for all of the examples and exercises in this book but the other techniques can also be used to achieve the same results.
 
Metadata
Title
Introduction to Programming
Author
Ben Stephenson
Copyright Year
2019
DOI
https://doi.org/10.1007/978-3-030-18873-3_1

Premium Partner