🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Abigail Solomon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Abigail Solomon
    Data Analysis Techdegree Student 4,716 Points

    How to iterate this loop with enumerate?

    Posted February 10, 2025 11:21pm by Abigail Solomon
    .a{fill-rule:evenodd;}techdegree
    Abigail Solomon
    Data Analysis Techdegree Student 4,716 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Devan Laton
    Devan Laton
    602 Points

    I need help with this for loop

    Posted October 4, 2024 10:35pm by Devan Laton
    Devan Laton
    602 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Javier Perez Narvaez
    Javier Perez Narvaez
    15,007 Points

    Problem whit function enumerate

    Posted August 15, 2021 3:45am by Javier Perez Narvaez
    Javier Perez Narvaez
    15,007 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Aubree Lindsey
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aubree Lindsey
    Python Development Techdegree Student 207 Points

    AssertionError: '0' not found in '1\nred\n2\norange\n3\nyellow\n4\ngreen\n5\nblue\n6\nindigo\n7\nviolet'

    Posted July 29, 2021 3:55pm by Aubree Lindsey
    .a{fill-rule:evenodd;}techdegree
    Aubree Lindsey
    Python Development Techdegree Student 207 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Richard Viloria
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Richard Viloria
    Python Development Techdegree Student 2,473 Points

    Unit 2's Python Sequences Challenge Task 2 of 2. [Duplicate]

    Posted June 23, 2021 2:23pm by Richard Viloria
    .a{fill-rule:evenodd;}techdegree
    Richard Viloria
    Python Development Techdegree Student 2,473 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Richard Viloria
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Richard Viloria
    Python Development Techdegree Student 2,473 Points

    Python Sequences Challenge Task 2 of 2

    Posted June 23, 2021 1:38pm by Richard Viloria
    .a{fill-rule:evenodd;}techdegree
    Richard Viloria
    Python Development Techdegree Student 2,473 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Luke Shephard Zikuyumo
    Luke Shephard Zikuyumo
    1,655 Points

    iterating_lists

    Posted May 1, 2021 6:18pm by Luke Shephard Zikuyumo
    Luke Shephard Zikuyumo
    1,655 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Luke Shephard Zikuyumo
    Luke Shephard Zikuyumo
    1,655 Points

    enumarate method code

    Posted April 26, 2021 7:51pm by Luke Shephard Zikuyumo
    Luke Shephard Zikuyumo
    1,655 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Haasini Beeravolu
    Haasini Beeravolu
    616 Points

    How do I do this?

    Posted February 20, 2021 9:52pm by Haasini Beeravolu
    Haasini Beeravolu
    616 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Haasini Beeravolu
    Haasini Beeravolu
    616 Points

    I don't understand.

    Posted January 30, 2021 3:41am by Haasini Beeravolu
    Haasini Beeravolu
    616 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Arvind Krishna
    Arvind Krishna
    3,550 Points

    What is wrong?

    Posted November 18, 2020 6:20am by Arvind Krishna
    Arvind Krishna
    3,550 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Jenn Giulietti
    Jenn Giulietti
    4,888 Points

    enumerate

    Posted September 30, 2020 10:59pm by Jenn Giulietti
    Jenn Giulietti
    4,888 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • hana haytham
    hana haytham
    2,232 Points

    help please i can not understand whats wrong with the code !!!!!!!

    Posted September 7, 2020 1:24pm by hana haytham
    hana haytham
    2,232 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Callum Anderson
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Callum Anderson
    Data Analysis Techdegree Student 10,200 Points

    im stuck

    Posted June 1, 2020 2:44pm by Callum Anderson
    .a{fill-rule:evenodd;}techdegree
    Callum Anderson
    Data Analysis Techdegree Student 10,200 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Humza Malak
    Humza Malak
    3,064 Points

    Python Sequences Task 2/2

    Posted May 17, 2020 1:32pm by Humza Malak
    Humza Malak
    3,064 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • William Paterson
    William Paterson
    3,331 Points

    code in lesson not correct

    Posted May 16, 2020 7:59pm by William Paterson
    William Paterson
    3,331 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    4 Answers

  • Bobur Azimov
    Bobur Azimov
    2,547 Points

    Write a for loop that iterates over the provided list. The body of the for loop should print

    Posted May 15, 2020 2:52am by Bobur Azimov
    Bobur Azimov
    2,547 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    I don't know where I am going wrong

    Posted May 4, 2020 7:13pm by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Nathan Forester
    Nathan Forester
    3,293 Points

    Why does the code produce the expected output in the preview window, but upon checking work, an error is raised?

    Posted April 13, 2020 12:24pm by Nathan Forester
    Nathan Forester
    3,293 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • ELVIS CHAWAREMERA
    ELVIS CHAWAREMERA
    11,627 Points

    python sequences

    Posted February 25, 2020 10:12am by ELVIS CHAWAREMERA
    ELVIS CHAWAREMERA
    11,627 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    0 Answers

  • Tapiwa Dzimiri
    Tapiwa Dzimiri
    1,070 Points

    loop to use enumerate method

    Posted November 25, 2019 11:44pm by Tapiwa Dzimiri
    Tapiwa Dzimiri
    1,070 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • arielp
    arielp
    3,516 Points

    Write a for loop that iterates over the provided list. The body of the for loop should print the current element in the

    Posted October 26, 2019 7:47am by arielp
    arielp
    3,516 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Bakang Elliot Simane
    Bakang Elliot Simane
    5,119 Points

    loops

    Posted October 7, 2019 11:31pm by Bakang Elliot Simane
    Bakang Elliot Simane
    5,119 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Gakenaope Elizabeth Mabutho
    Gakenaope Elizabeth Mabutho
    1,950 Points

    Where could I be going wrong?Please help,it gives out an Assertion Error.How?

    Posted September 17, 2019 12:34pm by Gakenaope Elizabeth Mabutho
    Gakenaope Elizabeth Mabutho
    1,950 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Alfred Moha
    Alfred Moha
    8,205 Points

    Write a for loop that iterates over the provided list. The body of the for loop should print the c

    Posted September 15, 2019 1:17pm by Alfred Moha
    Alfred Moha
    8,205 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    3 Answers

  • sam short
    sam short
    1,481 Points

    Iterating lists

    Posted August 5, 2019 3:48am by sam short
    sam short
    1,481 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • dfeem
    dfeem
    4,660 Points

    Any assistance with this challenge is appreciated? Thanks!

    Posted July 31, 2019 5:59am by dfeem
    dfeem
    4,660 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

  • Samson Chapuramhuka
    Samson Chapuramhuka
    7,390 Points

    Edit the code so that the for loop uses the enumerate method. Add a print statement above the existing print statement t

    Posted July 15, 2019 11:30am by Samson Chapuramhuka
    Samson Chapuramhuka
    7,390 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    5 Answers

  • Stanley Nkosi
    Stanley Nkosi
    4,233 Points

    Python Sequence -Task 1 of 2 How to write a loop that iterates over the list provided? Stanley Nkosi

    Posted July 15, 2019 9:12am by Stanley Nkosi
    Stanley Nkosi
    4,233 Points
    • Python
    • Python Sequences
    • Sequence Iteration
    • Iterating With For Loops

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.