Skip to content

Commit 22accd2

Browse files
Files are Updated With Some Documentation
Some More Documentation was added with some Minor Details . Like Author Name and Topic For The File to Easily Understand the purpose of the Programe.
1 parent 60176e9 commit 22accd2

33 files changed

+132
-14
lines changed

Python Basic/Bubble Sort .py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Buuble Sort
4+
'''
15

26
def sort(nums):
37
for i in range(len(nums)-1,0,-1):
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Change Number TO Binary
4+
'''
5+
6+
num = 23
7+
print(bin(num))

Python Basic/Magic Method.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Magic Method
4+
'''

Python Basic/Pattern Searching algorithms.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
''' Python3 program for Naive Pattern
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Pattern Searching
4+
Python3 program for Naive Pattern
25
Searching algorithm
36
'''
47
def search(pat, txt):
@@ -26,4 +29,3 @@ def search(pat, txt):
2629
search(pat, txt)
2730

2831
# This code is contributed
29-
# by PrinciRaj1992

Python Basic/Python linear search p.py.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
''' Linear serach algorithm
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Buuble Sort
4+
Linear serach algorithm
25
1. worst case
36
2.average case
47
3.Best case

Python basic/function3.py renamed to Python Basic/Recursion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'''
2-
Python recursion
2+
@author : CodePerfectPlus
3+
@Topic : Recursion
34
'''
45
def recursion_01(k):
56
if(k>0):

Python Basic/Regex.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Regex
4+
'''
5+
16
import re
27

38
#Check if the string starts with "The" and ends with "Spain":

Python Basic/Selection Sort.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Selection Sort
4+
'''
15
def sort(nums):
26
for i in range(len(nums)-1):
37
minpos = i

Python Basic/args and kwargs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Args And Kwargs in Python
4+
'''
5+
16
def student(*args, **kwargs):
27
print(args)
38
print(kwargs)

Python Basic/enumerate fun.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
'''
2+
@author : CodePerfectPlus
3+
@Topic : Enumerate
4+
'''
5+
6+
7+
18
example = ['left', 'right ', 'up', 'down']
29

310
for i,j in enumerate(example):

0 commit comments

Comments
 (0)