American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

10:30 AM – Intro to Python – Isaac

June 24 @ 10:30 am - 12:30 pm

Today, we learned
  1. Data types, variables, operators (+, -, *, /, %)
    1. % is modulo, the remainder operator
    2. Increment with += (there are also -=, *=, /=, %=)
  2. String concatenation with +
  3. Printing formatted strings with f-string
    1. print(f”You can print {variable} like this.”)
  4. Variable name rules (can’t start with a number, can’t have space, can have a-z, A-Z, _, and 0-9)
  5. String formatting with .upper(), .lower(), .title(), .strip(), .lstrip(), .rstrip()
  6. Escape sequences (\n, \t, \”)
  7. Conditionals with if, elif, else (most specific case on top)
  8. == for equal, != for not equal
  9. and, or, not
Homework
  1. Try out code examples from pages 20-23 of the textbook (Textbook Link), and save it to a file called Jun_24_StringHomework.py.
  2. Do #3 from List, Inputs, IF and ELSE, Loops and function, and save it to a file called Jun_24_IfElseHomework.py.

If you have any questions, feel free to email me at isaac@ayclogic.com!

Details

Date:
June 24
Time:
10:30 am - 12:30 pm