diff --git a/C/.gitignore b/C/.gitignore index d6b7ef3..f935021 100644 --- a/C/.gitignore +++ b/C/.gitignore @@ -1,2 +1 @@ -* !.gitignore diff --git a/C/ootpatang.c b/C/ootpatang.c new file mode 100644 index 0000000..2e3e996 Binary files /dev/null and b/C/ootpatang.c differ diff --git a/Python/.gitignore b/Python/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/Python/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/Python/.idea/Python.iml b/Python/.idea/Python.iml new file mode 100644 index 0000000..8dc09e5 --- /dev/null +++ b/Python/.idea/Python.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Python/.idea/inspectionProfiles/profiles_settings.xml b/Python/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/Python/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/Python/.idea/misc.xml b/Python/.idea/misc.xml new file mode 100644 index 0000000..91eaa2d --- /dev/null +++ b/Python/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Python/.idea/modules.xml b/Python/.idea/modules.xml new file mode 100644 index 0000000..3097039 --- /dev/null +++ b/Python/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Python/.idea/vcs.xml b/Python/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Python/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Python/.idea/workspace.xml b/Python/.idea/workspace.xml new file mode 100644 index 0000000..2e2bb13 --- /dev/null +++ b/Python/.idea/workspace.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1602946208978 + + + + \ No newline at end of file diff --git a/Python/captcha.py b/Python/captcha.py new file mode 100644 index 0000000..7b9ec84 --- /dev/null +++ b/Python/captcha.py @@ -0,0 +1,27 @@ +import random +from tkinter import * +from tkinter import messagebox + +text = 'abcdefghijklmnopqrstuvwxyz0123456789' +window = Tk() +window.title("Captcha App") +window.geometry("300x100") #You can set the window according to your use +captcha = StringVar() +user_input = StringVar() + +def set_captcha(): + s = random.choices(text, k = 6) #value of k decides the length of captcha + captcha.set(''.join(s)) + +def check(): + if captcha.get() == user_input.get(): + messagebox.showinfo("Success", "Correct") + else: + messagebox.showinfo("Error", "Incorrect") + set_captcha() + +Label(window, textvariable = captcha, font = "Arial 16 bold").pack() +Entry(window, textvariable = user_input, font = "Arial 16 bold").pack(ipady = 5) +Button(window, command = check, text = 'Check', font = "Arial 10").pack() #you can change the font of title, captcha given and user input +set_captcha() +window.mainloop() \ No newline at end of file