e-learning
Python - Basic Types & Type Conversion
Abstract
Python is a typed language, data has a type, and different types of data cannot always be connected immediately and might need some conversion step before they can be used together. For instance if you add a number to a number, what should happen? If you add a number to a message, what do you expect will happen?
About This Material
This is a Hands-on Tutorial from the GTN which is usable either for individual self-study, or as a teaching material in a classroom.
Questions this will address
- What kinds of data do programs store?
- How can I convert one type to another?
Learning Objectives
- Explain key differences between integers and floating point numbers.
- Explain key differences between numbers and character strings.
- Use built-in functions to convert between integers, floating point numbers, and strings.
Licence: Creative Commons Attribution 4.0 International
Keywords: Foundations of Data Science, jupyter-notebook
Target audience: Students
Resource type: e-learning
Version: 3
Status: Active
Learning objectives:
- Explain key differences between integers and floating point numbers.
- Explain key differences between numbers and character strings.
- Use built-in functions to convert between integers, floating point numbers, and strings.
Date modified: 2023-02-13
Date published: 2022-04-25
Contributors: Bazante Sanders, Beatriz Serrano-Solano, Donny Vrins, Helena Rasche, Wendi Bacon
Scientific topics: Software engineering
Activity log