PYTHON LESSON

Topic 19/63 · Phase 3: Data Mastery

Lists — Python lesson on EduBard (phase: Data Mastery)

Lists

Main idea

Lists are ordered mutable collections.

Tip

Use append for growth.

Watch out

Index out of range.

Read this next

You will study Lists. It belongs to the Data Mastery phase.

Remember this:
Lists are ordered mutable collections.

Practice step by step. Do not rush. Each run should show you something new.

Tip:
Use append for growth.

Avoid this:
Index out of range.

Your challenge:
Store 5 tasks and print with numbering.

Go to the challenge lab below. Fix errors until the output looks right. Then press the green button to complete the topic.

Example code

Copy this example if it helps. Change it so it matches Lists.

# Topic: Lists
def main():
    sample = "edit me"
    # TODO: apply Lists concept here
    result = sample
    print("Result:", result)

if __name__ == "__main__":
    main()

Challenge

Store 5 tasks and print with numbering.

Before you can finish: your output should include at least 16 characters; at least 1 non-empty line(s); no crash traceback—fix errors until the program runs cleanly.

Use Run. Read the output. Change your code until the task is done.

Starter reference

# Challenge starter for Lists
def solve():
    # Write your solution here
    pass

print("Update solve() and run")

Your code

The first Run may load Python in your browser (one-time). Later runs are faster.



    
    

Navigation