In this lesson, students will learn how to use If Statements which will allow them to use conditions to determine how their code should run. They will also learn how to use string comparison methods inside if statements.
Students will be able to:
In this lesson, students will learn how to expand on If Statements by including a way to have Tracy make decisions between multiple scenarios.
Students will be able to:
In this lesson, students will learn why we may want to return values from functions and how to implement this in their own programs. They will also take a deeper dive into the in
keyword and how it can be used in programs.
Students will be able to:
return
keyword to return values from function back to the main programin
keyword to check if a value is contained inside anotherIn this lesson, students will learn that while loops allow code to be executed repeatedly based on a condition. They will also be warned that infinite loops are created if the exit condition of the while loop is never met, causing the code inside the while loop to repeat continuously which causes the program to crash and will learn how the break
statement can be used to avoid this.
Students will be able to:
break
statement inside while loopsIn this lesson, students review content with a 10 question End-of-Unit Quiz.
Students will be able to:
isalpha
isdigit
/isnumeric
isupper
islower
startswith
endswith
elif
in
keywordreturn
in functionsbreak