Question: Edit this code to add username input. Username is default. Username=abcd@gmail.com The program should check if the entered input is the same as the default

 Edit this code to add username input. Username is default. Username="abcd@gmail.com"

Edit this code to add username input. Username is default. Username="abcd@gmail.com" The program should check if the entered input is the same as the default username and password. If not, display "Incorrect/invalid input"

#password import tkinter as tk window=tk.Tk window.title("MY Password") window.geometry("200x200") def checkPassword(): password="Orange" enteredPassword=passwordEntry.get() if password=senteredPassword: confirmLabel.config(text="Correct") else: confirmLabel.config(text="Incorrect") passwordLabel=tk.Label(window, text="Password:") passwordEntry=tk. Entry(window, show="*") button=tk.Button(window, text="Enter", command=checkPassword) confirmLabel=tk. Label(window) passwordLabel.pack() passwordEntry.pack() button.pack() confirmLabel.pack() window.mainloop()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!