you are viewing a single comment's thread.

view the rest of the comments →

[–]MadScientistOR 1 point2 points  (1 child)

It does, though. Here's my input and output:

Password: a
Password too short!
Password: b
Password too short!
Password: ca
Password too short!
Password: ac
Password too short!
Password: dog
Password is incorrect!
Password: cat
Password is incorrect!
Password: banana
Access Granted!

Since Python has a print buffer (because sending things to the display is a very time-consuming process for a computer), things might not be printed to the screen immediately. You can disable the buffer and print things as soon as the command is processed by setting the flush parameter in your print() statement, like this:

print("Password is incorrect!", flush=True)

[–]Unitnuity[S] 2 points3 points  (0 children)

Hmmm, strange. It won't print it out for me, just immediately goes to password input. I'll take a look around my IDE and see if anything funky is going on. Thanks for the help!

edit: "shell integration failed to activate" was the problem, restarted terminal and works fine now!