Learning Programming with Fundamentals of Computing
Introduction to Interactive Programming in Python - Week 1
The first week covers the very basics of programming languages: expressions, variables, and assignments.
- Expressions: Something that evaluates to a single value. For example, 2 + 2 is an expression because it evaluates to a single value, 4. The 2's are values, and the + symbol is an operator. Expressions simply combine values and operators. There are many different types of operators. The following are some of the most common types:
- Addition: +
- Subtraction: -
- Multiplication: *
- Division: /
- Floor Division: //
- Modular Division: %
- Exponents: **
- Variables: A location in memory where you can store a value.
- Assignments: A statement that connects a value to a variable. For example, tomato = 4. In this case, tomato is a variable, which I assigned the value 4 using the assignment operator =.
Mini Project 1
The structure of each course in the Fundamentals of Computing specialization includes weekly videos, homework assignments, and mini projects that allow students to apply that week's concepts. Since the first week covers the very basics of Python and the logistics of the course, its mini project is simply printing the statement "We want... a shrubbery!" in Python.