Loading Events

« All Events

  • This event has passed.

11 AM – Intro To Python – Gamas

October 3 @ 11:00 am - 12:00 pm
Today We Did
  1. We learn more about function and its parameter
  2. We learn about input from shell
  3. We learn about if else statement
Homework
  1. Inside oct_3_train_hw.py
    1. Draw the train picture from the grid paper.
  2. Create oct_3_input_from_shell_hw.;py
    1. Copy codes from book page 114 to 116
    2. Also answer question from page 117, The TRY-IT-YOURSELF
      1. 7-1 Rental Car
      2. 7-2 Restaurant Seating
  3. Create a function the following requirements
    1. function name: make_pizza
    2. parameter names: topping_1, topping_2, topping_3
    3. Inside the function it will print a sentence according to its parameters. For example if you call the function like the following
      1. make_pizza(“beef”, “bacon”, “mushroom”)
      2. then it will print “I am making beef, bacon and mushroom pizza
    4. If I call the function like the following
      1. make_pizza(“pepperoni”, “cheese”, “pineapple”)
      2. Then it will print “I am making pepperoni, cheese and pineapple pizza.

Details

  • Date: October 3
  • Time:
    11:00 am - 12:00 pm