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