CS1 - 1415 - January

From WLCS

Thursday (1/29/15)

Agenda:

  • Boolean Logic Quiz
  • Complete Codecademy - PygLatin
  • Complete Codecademy - Functions
  • Introduction to Functions
    1. Define functions at the top of the file
    2. Only use variables that you send in as parameters or create in the function
    3. return information, do not just print()
    4. Function calls always have parentheses!

Tuesday (1/27/15)

Warmup:

  • Without using a computer, identify the syntax errors in the following code
username = input(Username: )
password = input("Password: "
if username = "admin":
  if password == "secret"
    print(Logged in successfully!"
  else:
    pint("Incorrect password!")
else
  print("Incorrect username!")

Agenda:

  • Complete and demo MPAA calculator assignment
  • Quiz on Thursday (1/29/15)
    • Comparison operators (<, <=, >, >=, ==, !=)
    • Logical operators (and, or, not)
    • if-statements
    • if-else statements
  • Complete Codecademy - PygLatin
  • Complete Codecademy - Functions

Friday (1/23/15)

Agenda:

Wednesday (1/21/15)

Agenda:

age = int(input("What is your age?"))

if age < 18:
    print("You cannot vote")

Thursday (1/15/15)

Agenda:

Tuesday (1/13/15)

Warmup:

  • Without using a computer, identify the syntax errors in the following code
a b = 1
b + 2 = c
print(1, 2, 3, a, b, c)
x = input(please enter an x)

Agenda:

Friday (1/9/15)

Warmup:

  • Make sure that you have completed the following Codecademy units:
    • Python Syntax
    • Tip Calculator
    • Strings & Console Output
    • Date and Time

Agenda:

  • Media:PythonInputOutput.ppt
  • Math programs practice
    • Calculating the area of a triangle
    • Calculating the distance between two points
    • Calculating the circumference of a circle

Wednesday (1/7/15)

Monday (1/5/15)

  • Complete missing presentations
  • Introduction to Python
    1. Hello world program
    2. WingIDE 101
    3. Sign up for an account on Codecademy
    4. Complete Python Syntax
    5. Complete Tip Calculator