Python Forum
Trying to cycle through a list of charcters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to cycle through a list of charcters
#8
(Sep-28-2020, 05:45 AM)bowlofred Wrote: I don't know what your question is.

Are you trying to generate 22 character IDs (randomly? sequentially?) Are you trying to decode youtube addresses? If you want to generate them sequentially, just change the repeat=3 in the code above to repeat=22. (At 5 x 10^39 different codes, it's going to take some time to work through them)

Youtube doesn't create IDs by just incrementing. That way folks can't predict what future codes will be, and the generation can be distributed among multiple servers.

Yes, I'm trying to do it sequentially.
How do you get 5 x 10^39 = 5e+39 when Buran works it out to 64**20 (Isn't that 64^20)= 1.329228e+36 ?
Could you explain how it's worked out?
There should also be numbers in it too...
0 - 9 (10)
a - z (26)
A - Z (26)
- - _ (2)
Total 64
Reply


Messages In This Thread
RE: Trying to cycle through a list of charcters - by pooky2483 - Sep-28-2020, 06:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Writing a cycle to find the nearest point from the array Tysrusko 0 224 May-10-2024, 11:49 AM
Last Post: Tysrusko
  Need to fix SyntaxError in cycle try alexfrol86 14 3,340 Mar-27-2022, 07:53 AM
Last Post: stevendaprano
  add Escape charcters in string GrahamL 3 1,252 Jan-20-2022, 01:15 PM
Last Post: GrahamL
  <while> cycle is not interrupted when using the <random>module ShityCoder 3 2,267 Sep-04-2020, 04:05 PM
Last Post: ShityCoder
  Cycle of numpy variables Zero01 0 1,599 Jul-31-2020, 11:58 AM
Last Post: Zero01
  stop cycle while windows11 1 2,094 May-16-2020, 03:17 PM
Last Post: deanhystad
  Occurrences using FOR and IF cycle P86 2 2,601 Jul-29-2019, 04:37 PM
Last Post: ThomasL
  pool map cycle skorost5 5 3,942 Apr-07-2019, 09:21 AM
Last Post: skorost5
  lifetime cycle counter Ixxxxxx 0 2,539 Mar-07-2018, 07:26 PM
Last Post: Ixxxxxx

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020