Skip to content

Commit a5fb366

Browse files
authored
Update pycmd.py
1 parent 69059ee commit a5fb366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Projects/pycmd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
cmd = 1
77
username = 1
88
password = 1
9+
admin = 0
910
# Command
1011
while cmd == 1:
1112
command = input("Command:")
@@ -34,13 +35,14 @@
3435
password = input("Password:")
3536
if username == "admin" and password == "admin":
3637
print("Logged In Successfully")
38+
admin = 1
3739
cmd = 0
3840
if username != "admin" and password !="admin":
3941
print("Wrong Username or Password")
4042
cmd = 0
4143
# Command Finished
4244
if cmd == 0:
43-
print("Command Executed")
45+
print("Command Finished")
4446
cmd = 1
4547

4648
# Command Not Found

0 commit comments

Comments
 (0)