- This event has passed.
5 PM – Intro to Python – William
January 20 @ 5:00 pm - 6:00 pm
Today We Did
- Reviewed Jan13_FunctionsHW.py
- Topics covered:
- Lists
- For loops
- If-Else
- Functions
- Code available here: https://drive.google.com/file/d/1oubSs4pyHULMHorwmbc-eIEmVc7rNm-p/view?usp=sharing
- Topics covered:
Homework
- Finish Exercise 7 at https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/
- Make for following functions in a new file:
Jan20_FunctionsHW5.py
- Write a function called
echo
that takes a string as input and prints it twice. - Write a function called
double
that takes in a number and returns double the value of the number. Call the function and print its output. - Write a function called
count
that takes a number as input and prints a countdown from 1 to that number. For example, callingcount(5)
should print:
- Write a function called
1 2 3 4 5
If you have any questions, please email me at williamsmith@ayclogic.com.