Skip to content

Commit

Permalink
Files are Updated With Some Documentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
codeperfectplus committed Jan 21, 2020
1 parent 60176e9 commit 22accd2
Show file tree
Hide file tree
Showing 33 changed files with 132 additions and 14 deletions.
4 changes: 4 additions & 0 deletions Python Basic/Bubble Sort .py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : Buuble Sort
'''

def sort(nums):
for i in range(len(nums)-1,0,-1):
Expand Down
7 changes: 7 additions & 0 deletions Python Basic/Convert Number to Binary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : Change Number TO Binary
'''

num = 23
print(bin(num))
4 changes: 4 additions & 0 deletions Python Basic/Magic Method.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'''
@author : CodePerfectPlus
@Topic : Magic Method
'''
6 changes: 4 additions & 2 deletions Python Basic/Pattern Searching algorithms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
''' Python3 program for Naive Pattern
'''
@author : CodePerfectPlus
@Topic : Pattern Searching
Python3 program for Naive Pattern
Searching algorithm
'''
def search(pat, txt):
Expand Down Expand Up @@ -26,4 +29,3 @@ def search(pat, txt):
search(pat, txt)

# This code is contributed
# by PrinciRaj1992
5 changes: 4 additions & 1 deletion Python Basic/Python linear search p.py.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
''' Linear serach algorithm
'''
@author : CodePerfectPlus
@Topic : Buuble Sort
Linear serach algorithm
1. worst case
2.average case
3.Best case
Expand Down
3 changes: 2 additions & 1 deletion Python basic/function3.py → Python Basic/Recursion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'''
Python recursion
@author : CodePerfectPlus
@Topic : Recursion
'''
def recursion_01(k):
if(k>0):
Expand Down
5 changes: 5 additions & 0 deletions Python Basic/Regex.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
@author : CodePerfectPlus
@Topic : Regex
'''

import re

#Check if the string starts with "The" and ends with "Spain":
Expand Down
4 changes: 4 additions & 0 deletions Python Basic/Selection Sort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : Selection Sort
'''
def sort(nums):
for i in range(len(nums)-1):
minpos = i
Expand Down
5 changes: 5 additions & 0 deletions Python Basic/args and kwargs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
@author : CodePerfectPlus
@Topic : Args And Kwargs in Python
'''

def student(*args, **kwargs):
print(args)
print(kwargs)
Expand Down
7 changes: 7 additions & 0 deletions Python Basic/enumerate fun.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
'''
@author : CodePerfectPlus
@Topic : Enumerate
'''



example = ['left', 'right ', 'up', 'down']

for i,j in enumerate(example):
Expand Down
5 changes: 5 additions & 0 deletions Python Basic/function basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
@author : CodePerfectPlus
@Topic : Funtion Basic
'''

def welcome(greeting):
return "Hello and {}".format(greeting)

Expand Down
Empty file.
4 changes: 4 additions & 0 deletions Python Basic/python_class.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : Python Class
'''
class Empl(object):

"""docstring for Empl"""
Expand Down
2 changes: 2 additions & 0 deletions Python basic/Function in python.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'''
@author : CodePerfectPlus
@Topic : Function
function in pyhton declared by def keyword, I will discuss about function in detilas.
IF-Else statements for check divisibility
'''
Expand Down
Empty file removed Python basic/Nested IF Else.py
Empty file.
2 changes: 2 additions & 0 deletions Python basic/Sep Parameter in python.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'''
@author : CodePerfectPlus
@Topic : seprator
The seprator between the argument to print() function in python in space by default,
which can be modified and can be made to any chracter.
we can use dash, comm, colan and semicolan instead of deafault space.
Expand Down
6 changes: 4 additions & 2 deletions Python basic/While_loop.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'''while Loop'''
'''github'''
'''
@author : CodePerfectPlus
@Topic : While Loop
while Loop'''

condition=2

Expand Down
5 changes: 4 additions & 1 deletion Python basic/condtionals and booleans.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'''
Function Method Using ClassMethod.
@author : CodePerfectPlus
@Topic : Function Method Using ClassMethod.
'''




class Employee:
"""A sample Employee class"""

Expand Down
6 changes: 5 additions & 1 deletion Python basic/for loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
'''For Loop
'''
@author : CodePerfectPlus
@Topic : For Loop
For loop function in python is same as while loop, but it mostly use at
finite no.
to iterate list and string
Expand Down
5 changes: 5 additions & 0 deletions Python basic/function2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
@author : CodePerfectPlus
@Topic : Function -2
'''

def my_func(food):
for x in food:
print(x)
Expand Down
5 changes: 5 additions & 0 deletions Python basic/function_parameter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'''
@author : CodePerfectPlus
@Topic : parameter OF Fucntion
'''

def function(num1,num2=5): #we define value for num
print(num1,num2)

Expand Down
6 changes: 6 additions & 0 deletions Python basic/generator_function.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
'''
@author : CodePerfectPlus
@Topic : Generator
'''


right_combination = (2,3,5)

for c1 in range(10):
Expand Down
5 changes: 4 additions & 1 deletion Python basic/global_local Variable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'''A Global Variable is one that can be accessed anywhere.
'''
@author : CodePerfectPlus
@Topic : Global And Local Variable
A Global Variable is one that can be accessed anywhere.
a local Variable is the opposite,
it can only be accessed within its frame.
'''
Expand Down
4 changes: 4 additions & 0 deletions Python basic/if_else_statements.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : If-Else Statement
'''
a=5
b=12
if a>b:
Expand Down
5 changes: 4 additions & 1 deletion Python basic/list and tuple.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
''' List and Tuple in Python are just like array to store data
'''
@author : CodePerfectPlus
@Topic : List and Tuple
List and Tuple in Python are just like array to store data
List are mutable and Tuple are immutable that means we can't change,modify a tuple.
generally tuple is used when we have to save some data as like "Ip address",
"Mac address"
Expand Down
5 changes: 4 additions & 1 deletion Python basic/python_classes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
''' class are group of functions.
'''
@author : CodePerfectPlus
@Topic : Python Classes
class are group of functions.
classes quickly work their way into "intermediate" Programing.
'''

Expand Down
5 changes: 4 additions & 1 deletion Python basic/python_function.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
''' Python Function Excxample'''
'''
@author : CodePerfectPlus
@Topic : python function
Python Function Excxample'''

def fname():
print("Hello")
Expand Down
4 changes: 4 additions & 0 deletions Python basic/python_json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : Python Json
'''
import json

x = {
Expand Down
4 changes: 4 additions & 0 deletions Python basic/range_function.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
'''
@author : CodePerfectPlus
@Topic : Range Function
'''
for x in range(1,10):
print(x)
5 changes: 4 additions & 1 deletion Python basic/reverse palindrome.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'''
'''
@author : CodePerfectPlus
@Topic : Palindrome
python programe to check if a string is palindrome
or not'''

Expand Down
2 changes: 2 additions & 0 deletions Python basic/simple_additon_function.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'''
@author : CodePerfectPlus
@Topic : Simple addition function
Using Function to add Two integer.
'''
Expand Down
6 changes: 5 additions & 1 deletion Python basic/statistics_module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
'''statistics Module can only be apply on python 3'''
'''
@author : CodePerfectPlus
@Topic : Statistics Module
statistics Module can only be apply on python 3'''



Expand Down
5 changes: 5 additions & 0 deletions Python basic/user_input.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
'''
@author : CodePerfectPlus
@Topic : User Input
'''
x=input('What is Your Name ?: ')
print('Hello',x)

0 comments on commit 22accd2

Please sign in to comment.