Module 2: Technical Preparation: Data Types and If Statements

Module Overview

Module 2 focuses on understanding data types in Python and how to convert between them. You'll also learn about Boolean logic and how to use if-statements to control the flow of your programs. These concepts are fundamental to solving programming challenges on LeetCode and in the General Code Assessment (GCA).

Learning Objectives

Core Competencies

Data Types and Boolean Logic

Data Types and Conversions

In this section, you'll learn about:

If/Else Statements

This section covers:

Boolean Logic with And/Or

Learn about:

Guided Project

In the guided project, you'll practice using LeetCode to solve programming challenges that require you to apply your knowledge of data types and conditional logic. You'll focus on type conversion and using if-statements to implement decision-making in your programs.

Project Resources

Recommended LeetCode Problems

Note: For all problems, you can select Python as your programming language using the dropdown menu in the LeetCode code editor.

Practice Activities

To reinforce your understanding of the concepts covered in this module, complete the following activities:

Additional Resources

Python Documentation

Practice Resources