Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9204949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:50:03+00:00 2026-06-17T23:50:03+00:00

I found this previously answered here, Best way to loop over a python string

  • 0

I found this previously answered here, Best way to loop over a python string backwards

I need to use OP’s original idea, but I don’t quite understand the meaning of the stop argument in the range function. What does 0-1 mean? From 0-1? Wouldn’t that be the step?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:50:05+00:00Added an answer on June 17, 2026 at 11:50 pm

    Why can’t you use reversed as accepted in the previously answered question?

    However, to answer your original question:

    The 0-1 is actually just a number 0-1, which is equal to -1

    The documentation for range says the following: range(start[, end[, step]]). His call looks like the following: range(len(string)-1, 0-1, -1)

    start = len(string)-1, which is last letter of the string.

    end = 0-1 which is equal to -1, so the last letter being handled is 0. Remember that range(0, 3) will actually give 0, 1, 2 and stop right before the 3. Same goes for negative numbers, it will stop right before -1, so it will stop at 0.

    step = -1. Step stands for how many numbers to step over at once. -1 means it will lower i by one every time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Previously answered questions here said that this was the fastest way: //nl is a
This question was previously asked Here , but not answered, And failed to find
Previously I did a Tutorial on OpenGL-ES 1.0. For reference, this can be found
this is an extension to my previous post today which can be found here:
Found this while reading the Neo4j manual, specifically here , I found the sentence:
I found this question asked previously but it contained bad examples and no true
I post new question based on this previously code posted here ( Filter users
Thanks in advance, and sorry if this question has been answered previously - I
I have found this site very useful for all my previously faced problems, However
Please, don't judge strictly if this question was discussed previously or indirectly answered in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.