HomeCoursesPython for Developers: The Basics

Discover the main data types

Chapter 2 · Discovering the Basics of Python · lesson 8 of 41
Reserved for subscribers — here is the beginning
We have learned how to create variables and manipulate strings and integers. Now let's go deeper into these concepts by discovering other common data types. Decimal data types Integers are used to represent whole numbers. But what if a recipe calls for 1.5 tomatoes? That is a decimal number, which Python can also store. We can save this value in a variable called new_ingredient_quantity. In Python, decimal numbers are classified as floating-point numbers, or floats. As with integers, we do not use quotation marks to store this value. Types de
The rest of this lesson is reserved for subscribers Create your free account to try the sample exercises, then upgrade to full access whenever you like.

Create your free account

No credit card required, in thirty seconds.
Continue with Google
or
Sign up with an e-mail
Already registered? Log in
By continuing, you agree to the terms of use and the privacy policy. Your data is hosted in the European Union.

Full access DATAGOZ

19 €/ month — or 190 € / year
  • All published courses and career paths
  • Exercises and quizzes with automatic grading
  • Practice, exam and certificate of completion
  • No commitment, cancel online
See the plans
This lesson is part of the course

Python for developers: the fundamentals

short_training5 chapters · 41 lessons

Discover the fundamentals of Python to develop your first applications!

  • Welcome platformsubscribers
  • Discovering Pythonsubscribers
  • Running a first Python scriptsubscribers
  • Create a Python scriptsubscribers
  • Handle variables, strings and numberssubscribers
  • Declaring and using variablessubscribers
  • Change the value of variablessubscribers
  • Discover the main data typesyou are here
  • Perform numerical operationssubscribers
  • Use Boolean valuessubscribers
  • Identifying data typessubscribers
  • Handle stringssubscribers
  • Create and use multiline stringssubscribers
  • Modify string contentsubscribers
  • Discover listssubscribers
  • Create and initialize a listsubscribers
  • Extract elements from a listsubscribers
  • Discover dictionariessubscribers
  • Create and structure a dictionarysubscribers
  • Manipulate dictionariessubscribers
  • Discover sets and tuplessubscribers
  • Create and use a tuplesubscribers
  • Manipulate setssubscribers
  • Choose the appropriate data structuresubscribers
  • Use conditions and operatorssubscribers
  • Check ingredient quantitiessubscribers
  • Testing equality between two valuessubscribers
  • Discovering for loopssubscribers
  • Iterating over a list with a loopsubscribers
  • Applying conditions to listssubscribers
  • Iterating over a dictionarysubscribers
  • Discovering while loopssubscribers
  • Breaking out of a while loopsubscribers
  • Using a while loopsubscribers
  • Adding conditions in a while loopsubscribers
  • Automating a sequence of taskssubscribers
  • Add items to a listsubscribers
  • Checking the values of a listsubscribers
  • Building a recipe scaling toolsubscribers
  • Put the concepts learned into practicesubscribers
  • Course conclusionsubscribers
Next lesson

Perform numerical operations

View the programme Create an account to continue