Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions 1.01_activity_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
Try to answer these questions:

1. What is the difference between list and tuple?
2. What is the difference between `for` loop and `while` loop?
3. What are the conditional statements in Python?
the list are mutable, you can edit, and list are enclosed in square brackets but the tuple are inmutable and are enclosed between pareentheses
3. What is the difference between `for` loop and `while` loop?
for loops are used when you want to iterate over a sequence (such as a list, tuple, string, or range) or any object that supports iteration and is determined by the length of the sequence being iterated over
and while is used when you want to repeat a block of code as long as a certain condition is true
5. What are the conditional statements in Python?
the conditional statements can be combined in various ways to create more complex decision-making structures in your code. there are three types of conditionals: if, else, and elif (else if).