Section 2.1 Programming Concepts and Python Fundamentals
In order to get started learning any programming language there are a number of concepts and ideas that are necessary. The goal of this chapter is to introduce you to the basic vocabulary of programming and some of the fundamental building blocks of Python.
Subsection 2.1.1 Learning Goals
-
To understand Pythonβs storage model
-
To solve problems using the βaccumulator patternβ
-
To understand operator precedence
-
To distinguish between expressions, values, and printed representations
-
To recognize and explain hard coding
Subsection 2.1.2 Objectives
-
Given some sample code identify variables that reference an object of a particular type
-
Given a variable of one type convert it to another
-
Simulate evaluation of an expression and assignment statement
-
Use reassignment to increment a variable (accumulator pattern)
-
Get input from a user and convert the input to the appropriate type
-
Identify the following types of values: strings, integers, floats, and functions
-
Recognize valid vs. invalid variable names
-
Write an assignment statement
-
Update a reference diagram after reassignment
You have attempted of activities on this page.
