Python Python Sequences Sequence Iteration Iterating over Ranges

Check Code when executing.

Seems simple enough. Reviewed range tutorial.

rydavim
rydavim
18,748 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)