Thursday, January 9, 2020

Lesson 1.2 Interactive Mode Slides

  • The right half of the repl.it interface is called a console. The console is a place where you can interact with a program. It can also be called a shell or a terminal.
  • The interpreter runs Python code. In most terminals, to run the Python interpreter program, type python3 into the terminal.
  • In repl, when you choose to create a python3 program, the console will already be running python 3.x .
  • In most consoles, type exit() or Ctrl-D to exit the interpreter and return to the $ command shell.
  • Python is a text-based programming language, uses tabbing/indentation to control execution, and is known for its readability.

 Lab 1.2 Part 1 - Using the Python Interpreter in Interactive Mode

Use the interpreter to evaluate expressions
  • If you haven't already, read Section 1.1 Values and Types
  • Lab 1.2 worksheet: make a copy of the lab. Type in your answers and keep worksheet for your notes. Please add to these notes as well. 
  • float: a data type, number with a decimal point (e.g. 3.0).
  • integer: a data type, number without a decimal point (e.g. 3).
  • string: a data type, characters surrounded in single or double quotes. Strings can be concatenated (combined) using the + operator .
  • expression: a combination of values and operators (and variables). Order of Operations is the same as what you have learned in math class.
  Due Friday  January 10, 2020:
  1. Lab 1.2 Worksheet. Make a copy. Submit on canvas.
  2. Reading 1.1 Values and Types
  3. Reading 1.2 Variables
  4. Reading 1.3 Errors and Debugging




No comments:

Post a Comment

Blog information move to Google Doc

Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...