Comments (1)
Hi @mcfarland03
Yes, it's weird that range includes the start index but not the ending one. This omit the end probably has to do with things like mapping to array / list indexes and such:
lst = [2, 4, 5, 6]
range(0, len(lst)) -> [0, 1, 2, 3]
But it's not exactly zero based at the start and always throws me off. If you look at the docs:
It does say this is expected and really your only recourse is to add the +1 at the end as you did. So it can catch us out for sure, but I don't know of a better solution.
from mastering-pycharm-course.
Related Issues (20)
- "Add method wake_up to Wizard class" is not working HOT 1
- part 12: explicitly list all tool-windows mentioned in chapter
- podcast: service.download_info has problem parsing podcast RSS HOT 3
- Consider adding PyCharm's Jupyter Notebooks support video HOT 3
- bad_wizard missing Wizard.attack() function HOT 2
- Web Application - Creating Pyramid project with Chameleon templates HOT 4
- Demonstrate issue / task tracking in PyCharm
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 304: invalid start byte HOT 1
- 4-refactoring - smelly_podcast doesn't run HOT 2
- With current version (2020 May) views.py <> default.py HOT 3
- Package lesson text might add something about which directory HOT 1
- Need a help HOT 2
- PyCharm doesn't see virtual environment HOT 5
- Add version to header/title display HOT 1
- Readme uses Google style docstrings HOT 8
- 4 Tracks? HOT 1
- The course is called "Effective Python", the repo still refers to the previous course "Mastering Python" HOT 2
- Python ModuleNotFoundError HOT 1
- Tkinter widgets in Pycharm Ubuntu not matching inline with columnspan HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mastering-pycharm-course.