File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 77
88 Display the Password: Print the generated password on the screen.
99
10- # Task 3 (Password generator)
11- Creating a password generator using Python and the Tkinter library for a simple graphical user interface (GUI) is a great project
12- 1 . We import the Tkinter library and other necessary modules.
13- 2 . We define a function generate_password that generates a random password based on the desired length and populates it in the entry field.
14- 3 . We create the main Tkinter window (root) and set its title.
15- 4 . We create labels, entry fields, and a button for inputting the password length and generating the password.
16- 5 . When the "Generate Password" button is clicked, it calls the generate_password function.
17- 6 . The generated password is displayed in the entry field for passwords.
10+
You can’t perform that action at this time.
0 commit comments