Skip to content

Day 6 code example should not subtract 1 from usersCount #3

Description

@msamyel

Results with subtracting 1:

https://github.com/javascript
https://github.com/javascript-tutorial
https://github.com/javascripter
https://github.com/javascriptit
https://github.com/JavaScriptErika
https://github.com/hyperlink
https://github.com/JavascriptDeNoobAPro
https://github.com/javascriptDev
https://github.com/javascriptdezero
https://github.com/javascript-forks
https://github.com/AmyDayday
https://github.com/javascript666666
https://github.com/JavascriptMick
https://github.com/javascripto
https://github.com/javascriptacademy-stash
https://github.com/luckyscc
https://github.com/JavascriptIsMagic
https://github.com/javascripteverywhere
https://github.com/javascript-indonesias
https://github.com/javascript-ninja-123
https://github.com/javascriptextjs
https://github.com/javascriptisscary
https://github.com/javascript-queen
https://github.com/javascriptlove
https://github.com/JavaScript-Resource
https://github.com/JavaScript-Packer
https://github.com/javaScriptKampala
https://github.com/JavaScriptDude
https://github.com/javascript-obfuscator

Without subtracting 1:

https://github.com/javascript
https://github.com/javascript-tutorial
https://github.com/javascripter
https://github.com/javascriptit
https://github.com/JavaScriptErika
https://github.com/hyperlink
https://github.com/JavascriptDeNoobAPro
https://github.com/javascriptDev
https://github.com/javascriptdezero
https://github.com/javascript-forks
https://github.com/AmyDayday
https://github.com/javascript666666
https://github.com/JavascriptMick
https://github.com/javascripto
https://github.com/javascriptacademy-stash
https://github.com/luckyscc
https://github.com/JavascriptIsMagic
https://github.com/javascripteverywhere
https://github.com/javascript-indonesias
https://github.com/javascript-ninja-123
https://github.com/javascriptextjs
https://github.com/javascriptisscary
https://github.com/javascript-queen
https://github.com/javascriptlove
https://github.com/JavaScript-Resource
https://github.com/JavaScript-Packer
https://github.com/javaScriptKampala
https://github.com/JavaScriptDude
https://github.com/javascript-obfuscator
https://github.com/javascriptjedi

Subtracting 1 gives an inaccurate number for usersCount.
It is also not necessary for the script to run, because the subsequent range(usersCount) will iterate through items 0..(usersCount-1).

https://github.com/cipher387/python-for-OSINT-21-days/blame/63ddced9cbf314abeaf0da89f484e5cad972c8fc/Day_6/read_list_of_fields.py#L8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions