By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,824 Members | 2,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,824 IT Pros & Developers. It's quick & easy.

I don't understand this output from the codecademy terminal

P: 22
I am using code academy to learn how to do python, for this code

Expand|Select|Wrap|Line Numbers
  1. x = range(0,11,2)
  2. x = enumerate(x)
  3. print(x)
I got this output

Expand|Select|Wrap|Line Numbers
  1. <enumerate object at 0x7f737edc0190>
  2. None
I would like to know what this output means.
Thank you
Jun 16 '16 #1
Share this Question
Share on Google+
2 Replies

Kara Hewett
P: 27
What version of python are you using? Range and enumerate function differently in different versions of python
Jun 16 '16 #2

P: 22
Sorry for the late reply, It is python version 2.x
Jun 18 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.