Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Sequences Sequence Iteration Iterating over Ranges

Check Code when executing.

Seems simple enough. Reviewed range tutorial.

rydavim
rydavim
18,814 Points

Can you please clarify what your question or comment is regarding this challenge? If your code is running into errors, please post that as well. You can format your code using the following markdown.

```python

# your code here

```

I am surprised the origianl code was not attached to the question.

my_list = [] for val in range(10): mylist.append(val) print(val)

1 Answer

I went to the range.py work space and I was able to diagnose a syntax error. "mylist" undefined. Maybe some errors are surpressed when checking work?

my_list = [] for val in range(10): print (val) my_list.append(val) print (my_list)