Doctor of Science in Information Technology (DScIT) Repository
Sch
o
ol of Computing
Applied AI
News
Events
Careers
Resources
Faculty
Projects
Repository
Learn
Python
HTML
JavaScript
XML
PHP
MATH
Applied AI
News
Events
Careers
Resources
Faculty
Projects
Repository
Learn
Python
HTML
JavaScript
XML
PHP
MATH
Editor
Editing — 3. Understanding Data Type
Learning Objectives
Distinguish between different data types in Python, including numeric types (int, float, complex), text types (str), and Boolean types (bool), and recognize the appropriate usage and characteristics of each data type.
Obtain proficiency in handling basic arithmetic operations with different numeric data types and use the type() function to check and confirm the data types of various variables and expressions in Python.
Understand string operations, including concatenation, slicing, and formatting, and learn to work with single and double quotes, as well as utilize multi-line strings and escape characters.
Convert between different data types using Python’s built-in functions such as int(), float(), and str(), and handle user input by converting it to the required data type for further processing.
Use Boolean expressions and operators for decision-making in programs, and understand the application of comparison operators and logical operators (and, or, not) in control flow statements.