Skip to content

Commit 60ec8c3

Browse files
committed
Added Bucket Sort program in Python
1 parent c88895a commit 60ec8c3

File tree

2,091 files changed

+315273
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,091 files changed

+315273
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
10+
[*.py]
11+
max_line_length = 119
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
86+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
87+
__pypackages__/
88+
89+
# Celery stuff
90+
celerybeat-schedule
91+
celerybeat.pid
92+
93+
# SageMath parsed files
94+
*.sage.py
95+
96+
# Environments
97+
.env
98+
.venv
99+
env/
100+
venv/
101+
ENV/
102+
env.bak/
103+
venv.bak/
104+
105+
# Spyder project settings
106+
.spyderproject
107+
.spyproject
108+
109+
# Rope project settings
110+
.ropeproject
111+
112+
# mkdocs documentation
113+
/site
114+
115+
# mypy
116+
.mypy_cache/
117+
.dmypy.json
118+
dmypy.json
119+
120+
# Pyre type checker
121+
.pyre/
122+
123+
# pytype static type analyzer
124+
.pytype/
125+
126+
# Cython debug symbols
127+
cython_debug/
128+
129+
# Visual Studio Code #
130+
.vscode/*
131+
!.vscode/settings.json
132+
!.vscode/tasks.json
133+
!.vscode/launch.json
134+
!.vscode/extensions.json
135+
.history
136+
.idea
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Draw python logo
2+
3+
4+
5+
### Modules required:
6+
```
7+
pip install PythonTurtle
8+
```
9+
10+
### Importing the module
11+
12+
```python
13+
import turtle
14+
```
15+
16+
## Output of this code:
17+
18+
<img src="https://github.com/Dummyjar/Dummyjar/blob/main/InShot_20210822_204315352.gif">
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
import turtle as t
2+
'''Author: Rajarshi Banerjee | GSAUC3'''
3+
class logo:
4+
5+
def __init__(i,t) -> None:
6+
i.t=t
7+
8+
def blue_part(i):
9+
i.t.penup()
10+
11+
# d = 200
12+
# x = 10
13+
i.t.pencolor('blue')
14+
i.t.color('blue')
15+
i.t.goto(-110,-100)
16+
i.t.pendown()
17+
i.t.begin_fill()
18+
i.t.right(180)
19+
i.t.forward(100/3)
20+
21+
for _ in range(5):
22+
i.t.right(15)
23+
i.t.forward(15)
24+
i.t.forward(15)
25+
i.t.right(5)
26+
for _ in range(5):
27+
i.t.forward(15)
28+
i.t.right(5)
29+
i.t.forward(27.58789)
30+
for _ in range(5):
31+
i.t.right(15)
32+
i.t.forward(15)
33+
34+
35+
36+
i.t.goto(0,100)
37+
i.t.goto(0,110)
38+
i.t.goto(-100,110)
39+
i.t.goto(-100,110+100/3)
40+
i.t.left(90)
41+
42+
for _ in range(5):
43+
i.t.right(15)
44+
i.t.forward(15)
45+
i.t.forward(15)
46+
i.t.right(5)
47+
for _ in range(5):
48+
i.t.forward(15)
49+
i.t.right(5)
50+
i.t.forward(27.58789)
51+
for _ in range(5):
52+
i.t.right(15)
53+
i.t.forward(15)
54+
55+
i.t.forward(60+10)
56+
57+
58+
for _ in range(5):
59+
i.t.right(15)
60+
i.t.forward(15)
61+
62+
i.t.right(5)
63+
i.t.goto(-100+30,10)
64+
65+
66+
for _ in range(5):
67+
i.t.left(15)
68+
i.t.forward(15)
69+
i.t.left(5)
70+
71+
i.t.goto(-110,-100)
72+
i.t.end_fill()
73+
74+
def yellow_part(i):
75+
i.t.penup()
76+
i.t.pencolor('yellow')
77+
i.t.color('yellow')
78+
i.t.goto(110,100)
79+
i.t.right(90)
80+
i.t.pendown()
81+
i.t.begin_fill()
82+
i.t.right(180)
83+
i.t.forward(100/3)
84+
85+
for _ in range(5):
86+
i.t.right(15)
87+
i.t.forward(15)
88+
i.t.forward(15)
89+
i.t.right(5)
90+
for _ in range(5):
91+
i.t.forward(15)
92+
i.t.right(5)
93+
i.t.forward(27.58789)
94+
for _ in range(5):
95+
i.t.right(15)
96+
i.t.forward(15)
97+
98+
99+
100+
i.t.goto(0,-100)
101+
i.t.goto(0,-110)
102+
i.t.goto(100,-110)
103+
i.t.goto(100,-110-100/3)
104+
i.t.left(90)
105+
106+
for _ in range(5):
107+
i.t.right(15)
108+
i.t.forward(15)
109+
i.t.forward(15)
110+
i.t.right(5)
111+
for _ in range(5):
112+
i.t.forward(15)
113+
i.t.right(5)
114+
i.t.forward(27.58789)
115+
for _ in range(5):
116+
i.t.right(15)
117+
i.t.forward(15)
118+
119+
i.t.forward(60+10)
120+
121+
122+
for _ in range(5):
123+
i.t.right(15)
124+
i.t.forward(15)
125+
126+
i.t.right(5)
127+
i.t.goto(70,-10)
128+
129+
130+
for _ in range(5):
131+
i.t.left(15)
132+
i.t.forward(15)
133+
i.t.left(5)
134+
135+
i.t.goto(110,100)
136+
i.t.end_fill()
137+
138+
139+
def eyes(i):
140+
i.t.penup()
141+
i.t.color('white')
142+
i.t.goto(-70,130)
143+
i.t.pendown()
144+
i.t.begin_fill()
145+
i.t.circle(10)
146+
i.t.end_fill()
147+
148+
i.t.penup()
149+
i.t.color('white')
150+
i.t.goto(70+20,-130)
151+
i.t.pendown()
152+
i.t.begin_fill()
153+
i.t.circle(10)
154+
i.t.end_fill()
155+
156+
i.t.hideturtle()
157+
158+
159+
160+
if __name__ =="__main__":
161+
t.Turtle()
162+
obj=logo(t)
163+
obj.blue_part()
164+
obj.yellow_part()
165+
obj.eyes()
166+
t.done()
167+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
*SS#&#&##&###SSSS######&&&&&&&&&&&&&###SS####&#####S#################SSSSS&%%$#$
2+
S*S######&&&&&####SSSS####&&&&&&&&&####S###########SS#################SS##$%@&$%
3+
**S#######&&&&&&&&#####SSSS####&&&&&######SSSSSSSSS##########SSSS#####S##@%@&%%%
4+
*S##&#&&###&&&&&&&&&&####&#SSSSS######SSSSS*SSS**SSSSSS#########SSSSSS#S&%&&%%%%
5+
*#&&&&######&&&&&&&&&&&##&#S######S##SSSSS******SSSSSS**S###########SSS#%&&%%%%%
6+
S###&&&########&&&&&&&&###S#########SSSSS**S*SS#SSS#SSSSSSSSSS#########$@#%%%%%%
7+
####SSSS###########&&&&#&SS########SSSSSSSSSSSSSSSSSS#SSSSSSSSS#######&@#%%%%%%%
8+
#&&######SSSSS###########S########SSSSSSSSSSSS****SSSSSSSSSSSSS#######@#$%%%%%%%
9+
##########S###SSSSS###&&SS&######SS*SS******************S***SSS######@&@%%%%%%%%
10+
#########S###########S#SS##&######S**SS*****SS*****************SS###&&&%%%%%%%%%
11+
%$@&&#SSS*#################S######S&@&@&#SSSSSSSSSSSS***SS******S###$#$%%%%%%%%%
12+
%%%%%%$@&############&&##&&####SSS&@@@%$#SS#&#####SSSSSSSSS*****S##@&&%%%%%%%$&#
13+
%%%%%%%***%%$@&&########&&&&##&SS&$%%$@&&SSS#&&##SSSSSSSSSS****S##&$#$%%%%%@#SSS
14+
%%%%%%%%%%%****%%$@&&##########S&$%%%$@@&#*SSS#SS*SSSSSSSSSSS#####%@&%%$@#SS**SS
15+
%%%%%%%%%%%%%%%%%%%*%%%$@&&###SS#&&&@@SS#S*S#&S*S**SSSSSSSS&&####$%&@@#SSS***SSS
16+
%%%%%***%%%%%%%%%%%%$@@@@@@@&#&##&&&@$SSS**SS#SSSS**SS***S######&$&SS***********
17+
%%%%%*****%%%%%%%%$&&##S#####S@$$&&&@$@##**SSS#SSSSS***SSSS##SSSS***************
18+
**%%%%%%%%%%%%%%$&&&&##SS#####SS&&&@&&$@#***SSSSSSSSSSSS##SS********************
19+
******%%%%%%%%%@#######SS#SS##S*S@$@&#@&S********SSSSSSSS*********************#@
20+
******%%***%%%&##SSS####S#SSSSSS@$@&###S*******S*SSSS**********************S&$%%
21+
*****%%%**%%*@##**SSSS##S#SSSS#@@&#S#S***SS******S**********************S&$%*%%%
22+
*****%%**%%*%#S*S#SSS***S#SS&@$@&&##S*********S**********************S&$%*%%%%%%
23+
%%%*%%**%%%*%#*######SS*SSSS&$*$&##S******************************SS$%%%%%%%%%%%
24+
**%%%%%%%%**$S#########S*S#SS*#**@#*******************S********#@%*#%**%%%%%%%%%
25+
*****%%%%%%%&S########SSS#SSSS*@@@#SSS***************SSS****S@%%***&@********%%%
26+
***********%####&##SSSS##SSSS*****SSSSSS****S********SSS**&%**%****%#**********%
27+
***********%#####SS#####SSSS*****SSSSSS****SS*******SSS*S$***%******&@********%*
28+
**********%%###SS#####S#SSSSS******SSSS***SSS******SSSS&%*%%%%******%#%*********
29+
%********%%%#SSSS#####SSSS*S********SSSSSSSSSS***SSSSS#%********%%%**@#%********
30+
%%%%%%***%*%SSS###S#SSSSSS*********SSSSSSSSSSSSSSSSSSSS%***********%%*@&%***%***
31+
%*******%%*&SS###SSSSSSS***********SSSSSSSSSSSSSSSSSSSS%***********%***@&%*%****
32+
%*********$SSSSSSSSSSS**************SSSSSSSSSSSSSSSSSSS%**********%*****@#%*****
33+
%*********@*SSSSSSSS*********************SSSSSSSSSSSS*&***********%******%&@****
34+
**********$SSSSSSS*************************SSSSSSSSSS*@*%%*%%****%*********@&$**
35+
**********%SSSSSS********************************SSSS*%*%*******%%%*********%&&$
36+
*****%*****$SSSS**********************************SSSS%****************%******%@
37+
%%**%%*%%%%*@S*************************************SSS%****************%*******%
38+
&&@$$$%*****%S*************************************S**$***********************%$
39+
&&&&&&&@@$$%&SSS**************************************@***********************$$
40+
@&&&&&&&&&&#SS****************************************#*****%****************$$$
41+
&&&&&&&&@@@&&##SS**********************************S**S%****%***************%@$$
42+
&&&#SSSS##@$$$@@&&###SS*************************SS#@$%*****%***************%$$$$
43+
&&&&##SS*&@@@@@@&&&&&##SSSS************SSSSS$$$%**%************************$$$$$
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pywhatkit
2+
pywhatkit.image_to_ascii_art(
3+
'flo.jpg', 'flo.text')
Loading

0 commit comments

Comments
 (0)