Skip to main content
Erschienen in:
Buchtitelbild

2019 | OriginalPaper | Buchkapitel

1. Introduction to Programming

verfasst von : Ben Stephenson

Erschienen in: The Python Workbook

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

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.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

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!

Fußnoten
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.
 
Metadaten
Titel
Introduction to Programming
verfasst von
Ben Stephenson
Copyright-Jahr
2019
DOI
https://doi.org/10.1007/978-3-030-18873-3_1

Premium Partner