Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Request #204

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion C/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*
!.gitignore
Binary file added C/ootpatang.c
Binary file not shown.
2 changes: 0 additions & 2 deletions Python/.gitignore

This file was deleted.

11 changes: 11 additions & 0 deletions Python/.idea/Python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Python/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Python/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Python/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions Python/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions Python/captcha.py
Original file line number Diff line number Diff line change
@@ -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()