Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with this code
#7
thx for all the help :D

im here now
l = int(input("password lenght"))
if l ==1:
    for i in range(48,123):
        print(str(chr(i)))
    
if l ==2:
    for i in range(48,123):
        for j in range(48,123):
            print(chr(i)+chr(j))
its working and i can keep adding lenght but what if I want to skip those special characters and I just want numbers and letters?
characters i want to skip are 58,64 and 91,96
because if i use all 256 characters if the lenght is >3 it would take forever to run

i got it :)
Thx for the help
Reply


Messages In This Thread
Help with this code - by skriff - Aug-21-2017, 12:51 PM
RE: Help with this code - by ichabod801 - Aug-21-2017, 01:00 PM
RE: Help with this code - by skriff - Aug-21-2017, 01:24 PM
RE: Help with this code - by wavic - Aug-21-2017, 02:01 PM
RE: Help with this code - by ichabod801 - Aug-21-2017, 02:19 PM
RE: Help with this code - by Larz60+ - Aug-21-2017, 02:31 PM
RE: Help with this code - by skriff - Aug-21-2017, 04:12 PM
RE: Help with this code - by wavic - Aug-21-2017, 09:34 PM

Forum Jump:

User Panel Messages

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