Paul Ineichen
@PAULX
I'm 12 years old, can speak English & German and teaching my self to code Python, bash, HTML,CSS,JS, BrainFuck.
bit.ly/2VZR
Join Nov,7,2018.
A simple programm to generate random passwords with custom lenght.
Does anyone have suggestions for improvement?
Python
when i make
print("Hi world")
than it prints that all at the same time, how can i make it that i looks like writing also i mean with a delay from ever
Pythonier Try using sys.stdout.write() and using a for loop to sys.stdout.write() each character. Make sure you also use time.sleep()4 years ago
I don't know why is this an error.
Error:
Traceback (most recent call last):
File "main.py", line 32, in
passwordcracker()
File "main.py", lin
GavHern String Index out of range means that you're indexing a string that isnt long enough or doesnt have any value at that index. For example, if I were to say:
my_string = "Hello"
print(my_string[5])
You would get an error because there is no index position 5 in my_string. Remember, index positions start at 0 so don't think "the 5th letter in 'Hello' is 'o'".4 years ago
a5rocks Basically, you are incrementing number2 past the length of abc. So, Python is like: "heck no, I can't make something appear from mid-air"4 years ago
I am just wondering how many are you earn with repl.it and how you earn the money. I mean only with repl.it premium you don't earn enough money to liv
Vandesm14 They probably get more than you think from the hacker plan. Just think, their servers probably cost several hundred per month ($300-$400). So take the $5 per month from hackers and estimate subscribers by dividing 400 by 5: 80. They have a lot more subscribers than that, I can assure you. And, maybe the cost of servers go into the thousands, but with 20 users per hundred, we can be sure they make a lot.
> Please mark this as answered if I helped your question 👍4 years ago
https://repl.it/@PAULX/password-makerpy
here i have a str named "abc" and i the programm prints the " ' " from the str.
my question is why can i make
Lord_Poseidon You unnecessarily complicated the variable abc and called the str function on what were already strings.I slightly modified your code to make it work https://repl.it/@Lord_Poseidon/password-makerpy4 years ago
can please somebody help my? i understand english and german.
https://repl.it/@PAULX/password-makerpy
ArchieMaclean You need to un-indent lines 18-23, like this:
def passwordmaker(y):
if q == 1:
randomone = (random.randint(0,9))
pword = pword + randomone
elif q == 0:
randomzero = 1
randomzero = randomzero + abc[random.randint(0,25)]
pword = pword + ramdomzero
print(randomzero)
time.sleep(4)
Also line 20 should be changed to
randomzero = randomzero + abc[random.randint(0,25)]
(like I have above).
Please upvote if this helps :)4 years ago
Can please someone of the developers fix that.
https://repl.it/@PAULX/brainfucktest
Vandesm14 It is most likely a program error. The code just adds and subtracts itself in an endless loop. This is probably because BF doesn't have endless loop protection.4 years ago
Do someone know how it's work?
https://repl.it/@PAULX/password-makerpy
HappyFakeboulde You're missing a closing parenthesis at the end of line 19.
(You don't actually need the first opening parenthesis right before random, though)4 years ago
MaxwellArchibal " randomone = (random.randint(0,9) "
^ ^ ^
open paren open paren close paren
as you can see, you have 2 opens and 1 close, toss another one on the end there.
also, this ide uses bracket matching, so typing (, [, or { will create a respective ), ], or }. HOWEVER, if you have your cursor right before the closing bracket and you type a closing bracket character, it won't input any character and will instead move the curso4 years ago
thoq It could be a missing parenthesis in line 19...
Just kidding. ;-) I only wanted to add that you can't trust the error message in cases like this. So whenever you got a Syntax Error and can't find the error it is probably a missing parenthesis in the line ABOVE the line shown in the message.4 years ago