American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3PM Python Level 1

February 9, 2019 @ 3:00 pm - 4:00 pm

  1. We reviewed the Loopy Loops project from 32 to 35.
  2. We reviewed last week homework about different kind of loops.
  3. We started with a new lesson on how to create functions in python.
  4. Homework:
    1. Create a function called “doSomething”. This function has no parameter:
      1. Inside this function, print “Hello “.
    2. Create a function called “doSomething2”.This function has one parameter (“name”):
      1. Inside this function, combine/concatenate the word “Hello ” and the parameter “name”.
      2. When you call the function doSomething2(“Gamas”), it will print the following
        1. Hello Gamas
      3. When you call the function doSomething2(“Ryan”), it will print the following
        1. Hello Ryan
    3. Create a function called “starwars”, no parameter.
      1. Create a new variable (“robots”), it is a List of String variable.
      2. The value of the ”robots” variable is: “R2-D2”, “C-3PO”, “ASN-121”, “WALL-E”, “DATA”, “BUMBLE-BEE”
      3. When this function is called, it will print all of the elements inside the list. Use “for loop” to go through each element inside the list.
        1. R2-D2
          C-3PO
          ASN-121
          WALL-E
          DATA
          BUMBLE-BEE

Details

Date:
February 9, 2019
Time:
3:00 pm - 4:00 pm
Event Categories:
,