The following code is from something that I’m working on for a School Project in my IT class.
import time
import os
import webbrowser
import datetime
import subprocess
import platform
import socket
user = 'none'
user1 = 'none'
admin = 'none'
encrypt = '101.1001.101'
Username = input("Username: ")
Password = input("Password: ")
if Username == 'User1' and Password == 'Random':
user = 'User1'
user1 = 'User1'
admin = 'on'
os.system('cls' if os.name == 'nt' else 'clear')
print("Redlook Command Terminal [Version 1.26]")
print("(ACI) Ace Coders PTY LTD Industries. All rights reserved.")
print("Username: User1")
print("Password: ****")
print("Connecting to server...")
time.sleep(1)
print("Connection Successful")
time.sleep(1)
print("Account Validation Complete")
time.sleep(1)
print("Loading Cloud Assets...")
time.sleep(1)
print("Loading ACI Framework...")
This part of the code is what I’m after help with – `print(“Password: *”) time.sleep(1) print(” *”) time.sleep(1) print(” *”) time.sleep(1) print(” *”)
`
I was wondering if there was a way to make this code work.
I tried to use this code – print("Password: *") time.sleep(1) print(" *") time.sleep(1) print(" *") time.sleep(1) print(" *")
to make it look like a password was being typed in asterisks.
e.g. Password: * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second) * (wait 1 second)
For a password of 10 letters or numbers is what I’m after.
After I tried to run this code with the code above all I got was a Syntax Error.
I don’t know if it makes a difference but I’m using Replit for the code
Aidan Robson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.