Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
ffd031f
number guess game in python
varun-devops Oct 2, 2020
9075f3d
Create Simple Calculator
arunsharma00 Oct 2, 2020
bca3c2e
Prime number
AlokTiwari777 Oct 2, 2020
0b03f26
Create AreaTriangle
lalit19 Oct 2, 2020
4808533
send sms using twilio
rajanitnavapara8 Oct 2, 2020
444b681
Define a split_in_two function that accepts a list and a number.
Qaiser998 Oct 2, 2020
c7b1998
Greater Number
suny55 Oct 2, 2020
bd503c6
Snake water gun game
fahad-25082001 Oct 2, 2020
4dfc9d9
Convert Video to audio
Im-Tanmoy Oct 2, 2020
43f5839
Python3 program to find compound
Vikas09718 Oct 2, 2020
66a739e
Create The multi-line form of this code would be
hackerboyalex Oct 2, 2020
7ee7dcc
QuickSelect.py
jayantk137 Oct 2, 2020
ae587d7
Hourglass using 2d array
empirocoder11 Oct 2, 2020
d43724d
Maximum sum of increasing subsequence
cadwellh5 Oct 2, 2020
0d8f8ad
Longest palindrome in a string
cadwellh5 Oct 2, 2020
fd79463
Create PythCalc
mrgr4yhat Oct 2, 2020
a56051d
Diagonal Difference of an array
cadwellh5 Oct 2, 2020
52de5bc
greatearno
suddodhan Oct 2, 2020
8db8845
Celsius to fahrenheit
sumit120398 Oct 2, 2020
d4dc9f2
snakes.py
Shreyash-cyber Oct 2, 2020
38aef7d
updated readme.md
UtkarshChoudhary19 Oct 2, 2020
b65550e
Create Binary Search
Naveen963 Oct 2, 2020
8ddc005
Create printing pattern
BUNNY2210 Oct 2, 2020
0865efd
DFS in python
Naveen963 Oct 2, 2020
1ebf881
pythonprogram
target-manish Oct 2, 2020
b453fe5
Breadth first search
Naveen963 Oct 2, 2020
bc33158
Stringpopulation_in_descending order
cadwellh5 Oct 2, 2020
1da5b39
Sort a stack using recursion
Naveen963 Oct 2, 2020
4bff2f1
creates multiplication table of any number
Pranav29g Oct 2, 2020
f255606
Merge pull request #265 from Pranav29g/patch-1
seeditsolution Oct 2, 2020
a7480c1
Merge pull request #264 from Naveen963/patch-4
seeditsolution Oct 2, 2020
b198a49
Merge pull request #263 from cadwellh5/patch-4
seeditsolution Oct 2, 2020
1269855
Merge pull request #261 from target-manish/patch-1
seeditsolution Oct 2, 2020
cd29fa5
Merge pull request #259 from BUNNY2210/master
seeditsolution Oct 2, 2020
4ee6c49
Merge pull request #258 from Naveen963/patch-1
seeditsolution Oct 2, 2020
136200f
Merge pull request #254 from Shreyash-cyber/patch-1
seeditsolution Oct 2, 2020
ebec5ed
Merge pull request #249 from TheGr4yhAt/patch-1
seeditsolution Oct 2, 2020
6f8c6fb
Merge pull request #243 from jayantk137/patch-1
seeditsolution Oct 2, 2020
1e0063c
Merge pull request #241 from hackerboyalex/patch-1
seeditsolution Oct 2, 2020
966b7ec
Merge pull request #252 from suddodhan/patch-1
seeditsolution Oct 2, 2020
79c78fc
Merge pull request #251 from sumit120398/patch-2
seeditsolution Oct 2, 2020
9e366c9
mergesort
vishnu-santhosh Oct 2, 2020
560978d
Merge pull request #262 from Naveen963/patch-3
seeditsolution Oct 2, 2020
93016ab
Merge pull request #256 from UtkarshChoudhary19/master
seeditsolution Oct 2, 2020
a8be630
Create swaping of variables
shreeamahadik Oct 2, 2020
ed7c7e5
Merge pull request #269 from shreeamahadik/patch-2
seeditsolution Oct 2, 2020
13dc02d
Merge pull request #267 from vishnu-santhosh/patch-1
seeditsolution Oct 2, 2020
0daa5c3
Merge pull request #250 from cadwellh5/patch-3
seeditsolution Oct 2, 2020
ec7b5b2
Merge pull request #248 from cadwellh5/patch-2
seeditsolution Oct 2, 2020
2791ad6
pythonprime
Oct 2, 2020
f581e7e
Merge pull request #245 from jainsaksham24/patch-1
seeditsolution Oct 2, 2020
597dfb8
Python Program for factorial of a number
Mohit5700 Oct 2, 2020
3f0a2cf
Create funny weight converter
Oct 2, 2020
e547bc4
Create pythonevenodd
Oct 2, 2020
1bdeb49
BMI CULCLATER
abhiray310 Oct 2, 2020
7e01c9b
Create forloopinpython
Oct 2, 2020
216bfb6
Python Program to Find the Factorial of a Number
farhan-sayeed Oct 2, 2020
6112d9b
class BasicLexer
vedang6575 Oct 2, 2020
8aee6be
update Python Program to Convert Celsius To Fahrenheit and Vice…
vedang6575 Oct 2, 2020
ea9b6a9
Fibonacci number
DhanrajDesai Oct 2, 2020
5b22a7f
PDF to Audiobook converter
mehakagrawal Oct 2, 2020
cd288cc
Calculator
sumit120398 Oct 2, 2020
9d9d4a7
Create find area of circle
yashhacker69 Oct 2, 2020
4c6df83
Update README.md
yashhacker69 Oct 2, 2020
f9d0c8f
Create libraries
yashhacker69 Oct 2, 2020
a5f809c
Tic-Tac-Toe
Fazalahmad44 Oct 2, 2020
6f9fb98
Quadratic Formula
ant19997x Oct 3, 2020
0adb443
solveQuadraticEq
Saurabhswaraj920 Oct 3, 2020
23a92c6
calender.py
Gaurav6342 Oct 3, 2020
b53c6d8
calculator
VipinSingh9680 Oct 3, 2020
b1607fb
check leap year
sakshamsinghal011 Oct 3, 2020
8d2b5d7
fibonacci
niladribit69 Oct 3, 2020
6f7f401
Linear Search
anandsaurav07 Oct 3, 2020
8c91586
Guess a no in 9 trials
Debarati678 Oct 3, 2020
ed64a78
Matrix Multiplication using Nested Loop
Aakashtiwari007 Oct 3, 2020
9db4295
SortWordsinAlphabeticOrder
Aakashtiwari007 Oct 3, 2020
34febf9
Factorial!no
pratikson Oct 3, 2020
4284f64
Decision making of car driving
Shanu899 Oct 3, 2020
5de973a
KNN_algorithm
MartianCoder-git Oct 3, 2020
c667242
Dictionary Use
Shanu899 Oct 3, 2020
44cd2d9
Number comparison
Shanu899 Oct 3, 2020
7ed8120
Create tic_tac_toe.py
ShrutiPandey27 Oct 3, 2020
c4716fb
dfs traversal
kumardeepak123 Oct 3, 2020
9301520
Cloning or Copying a list
yakshdeveloper Oct 3, 2020
42a928c
oddeven
amiyagiri Oct 3, 2020
1167d11
Create Matrix Multiplication in Python
abhishekkushwah827 Oct 3, 2020
706ad56
Pacman
baibhavtripathy Oct 3, 2020
57bc2b4
Snake
baibhavtripathy Oct 3, 2020
aab9dc5
Adding solution for Repeated Substring Pattern problem
SushilG96 Oct 3, 2020
29cc001
Auto Wesite Visitor Python Script
pavanteja1999 Oct 3, 2020
62110c0
Calculate simple Interest
Bipul-coder Oct 3, 2020
25c244e
Crashing Car Game
pavanteja1999 Oct 3, 2020
6235a6b
Matrix Multiplication using Nested Loop
CodeWithAjaySaini Oct 3, 2020
0df6b1d
Create Dayofprogrammer
saurabhsonawane2015 Oct 3, 2020
9f01007
Create Knapsack_problem.py
VRohit1901 Oct 3, 2020
5a5314b
Create addition using function
akshit250 Oct 3, 2020
cbc76e9
PrintHelloWorld.py
darshanvyas07 Oct 3, 2020
c96031c
Merge pull request #373 from Darshan15071998/patch-1
seeditsolution Oct 3, 2020
445dc50
Merge pull request #372 from akshit250/patch-2
seeditsolution Oct 3, 2020
4f78731
Merge pull request #371 from VRohit1901/patch-1
seeditsolution Oct 3, 2020
610e483
average number
Shibu-goswami Oct 3, 2020
95f1579
Merge pull request #369 from AjaySaini1999/patch-1
seeditsolution Oct 3, 2020
57f315f
Merge pull request #370 from saurabhsonawane2015/patch-1
seeditsolution Oct 3, 2020
7fda31e
Merge pull request #367 from pavanteja1999/patch-2
seeditsolution Oct 3, 2020
b6647c1
Merge pull request #366 from Bipul-coder/patch-3
seeditsolution Oct 3, 2020
20c8a39
Merge pull request #361 from baibhavtripathy/patch-1
seeditsolution Oct 3, 2020
4f0ee0b
Merge pull request #357 from yakshdeveloper/patch-1
seeditsolution Oct 3, 2020
70f441b
Merge pull request #341 from Debarati678/patch-4
seeditsolution Oct 3, 2020
4c81300
Merge pull request #342 from Aakashtiwari007/patch-1
seeditsolution Oct 3, 2020
37e3501
Merge pull request #343 from Aakashtiwari007/patch-2
seeditsolution Oct 3, 2020
8a8b483
Merge pull request #344 from pratikson/patch-1
seeditsolution Oct 3, 2020
3373440
Merge pull request #347 from Shanu899/patch-1
seeditsolution Oct 3, 2020
ec89ae3
Merge pull request #349 from Shanu899/patch-2
seeditsolution Oct 3, 2020
96fb482
Merge pull request #353 from ShrutiPandey27/patch-2
seeditsolution Oct 3, 2020
a552576
Merge pull request #356 from kumardeepak123/patch-1
seeditsolution Oct 3, 2020
8c6e2d5
Merge pull request #362 from baibhavtripathy/patch-2
seeditsolution Oct 3, 2020
d10b146
Merge pull request #364 from pavanteja1999/patch-1
seeditsolution Oct 3, 2020
5a2180b
Merge pull request #360 from abhishekkushwah827/patch-1
seeditsolution Oct 3, 2020
b80d9b9
Merge pull request #359 from amiyagiri/patch-1
seeditsolution Oct 3, 2020
8ad4222
Merge pull request #351 from Shanu899/patch-4
seeditsolution Oct 3, 2020
35fd0f2
Merge pull request #327 from anandsaurav07/master
seeditsolution Oct 3, 2020
be1d3f0
Merge pull request #326 from niladribit69/patch-1
seeditsolution Oct 3, 2020
23ef245
Merge pull request #324 from sakshamsinghal011/patch-1
seeditsolution Oct 3, 2020
efdb9e8
Merge pull request #322 from VipinSingh9680/patch-1
seeditsolution Oct 3, 2020
18264c1
Merge pull request #320 from Gaurav6342/patch-1
seeditsolution Oct 3, 2020
48a37ba
Merge pull request #316 from Saurabhswaraj920/patch-1
seeditsolution Oct 3, 2020
75cdb34
Merge pull request #312 from ant19997x/patch-1
seeditsolution Oct 3, 2020
08b09aa
Merge pull request #308 from Fazalahmad44/patch-2
seeditsolution Oct 3, 2020
c5d82d2
Merge pull request #304 from yashhacker69/master
seeditsolution Oct 3, 2020
2f0c793
Merge pull request #293 from mehakagrawal/patch-1
seeditsolution Oct 3, 2020
5bc3d0e
Merge pull request #289 from vedang6575/patch-1
seeditsolution Oct 3, 2020
2363d37
Merge pull request #284 from maahieummah/patch-3
seeditsolution Oct 3, 2020
05a70ae
Merge pull request #278 from maahieummah/patch-1
seeditsolution Oct 3, 2020
aca5270
Merge pull request #303 from sumit120398/patch-4
seeditsolution Oct 3, 2020
a18286b
Merge pull request #291 from DhanrajDesai/patch-1
seeditsolution Oct 3, 2020
fc51376
Merge pull request #290 from vedang6575/patch-2
seeditsolution Oct 3, 2020
61e19a5
Merge pull request #286 from mrlazyProgrammer/patch-1
seeditsolution Oct 3, 2020
97cf6cd
Merge pull request #280 from abhiray310/patch-1
seeditsolution Oct 3, 2020
553eff1
Merge pull request #277 from kirankumarsk/patch-1
seeditsolution Oct 3, 2020
7d7cd3c
Merge pull request #275 from Mohit5700/patch-1
seeditsolution Oct 3, 2020
1fe6cc1
Merge pull request #273 from SHARIQ78692/patch-1
seeditsolution Oct 3, 2020
fcd8815
Merge pull request #260 from Naveen963/patch-2
seeditsolution Oct 3, 2020
ac8d94c
Merge pull request #247 from cadwellh5/patch-1
seeditsolution Oct 3, 2020
a7b731d
Merge pull request #234 from Vikas09718/patch-3
seeditsolution Oct 3, 2020
6e92421
Merge pull request #231 from Im-Tanmoy/patch-1
seeditsolution Oct 3, 2020
8a50961
Merge pull request #229 from fahad-25082001/patch-1
seeditsolution Oct 3, 2020
e7b27c7
Merge pull request #221 from suny55/patch-1
seeditsolution Oct 3, 2020
a45bad5
Merge pull request #215 from iQaiserAbbas/patch-1
seeditsolution Oct 3, 2020
ddd3da6
Merge pull request #211 from rajanitnavapara8/patch-4
seeditsolution Oct 3, 2020
b860798
Merge pull request #203 from lalit19/patch-1
seeditsolution Oct 3, 2020
548ca31
Merge pull request #201 from AlokTiwari777/patch-1
seeditsolution Oct 3, 2020
31fef52
Merge pull request #193 from arunsharma00/patch-1
seeditsolution Oct 3, 2020
075af4e
calculate simple interest
amiyagiri Oct 3, 2020
f309005
Merge pull request #185 from varun-devops/patch-1
seeditsolution Oct 3, 2020
499fe28
Merge pull request #375 from amiyagiri/patch-2
seeditsolution Oct 3, 2020
4864e06
Merge pull request #374 from Shibu-goswami/patch-1
seeditsolution Oct 3, 2020
bbb65f1
Merge pull request #363 from SushilG96/new-code
seeditsolution Oct 3, 2020
99cf7d7
Merge pull request #348 from MartianCoder-git/patch-1
seeditsolution Oct 3, 2020
b23fab8
Whatsapp message
Mitkateliya Oct 8, 2020
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
10 changes: 10 additions & 0 deletions AreaTriangle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))

# calculate the semi-perimeter
s = (a + b + c) / 2

# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)
62 changes: 62 additions & 0 deletions Auto Website Visitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
##--- Auto Website Visitor by khalsalabs ---- ####
import urllib2
import random
import threading
import sys
import time
class Connect:
req = urllib2.Request('http://your-website-name.com')
con_sucess, con_failed, con_total=0,0,0
url_total, proxy_total= 0,0
url_list =[]
proxy_list= []
agent_list =[]

def __init__(self):
pF = open('proxy.txt','r')
pR = pF.read()
self.proxy_list = pR.split('n')

uF = open('url.txt','r')
uR = uF.read()
self.url_list = uR.split('n')

aF = open('agent.txt','r')
aR = aF.read()
self.agent_list = aR.split('n')

def prep_con(self):
rURL = random.randint(0,(len(self.url_list))-1)
self.req = urllib2.Request(self.url_list[rURL])
rAGENT = random.randint(0,(len(self.agent_list))-1)
self.req.add_header('User-agent',self.agent_list[rAGENT])

def make_con(self):
count, time_stamp =0,0
for proxy in self.proxy_list:
self.req.set_proxy(proxy,'http')
if count%4==0:
if self.con_total < 2*count:
time_stamp = 6
else:
time_stamp = 3
threading.Thread(target=self.visitURL).start()
time.sleep(time_stamp)
count += 1

def visit(self):
try:
f = urllib2.urlopen(self.req)
self.con_sucess += 1
except:
self.con_failed += 1
self.con_total += 1
print self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed

def visitURL(self):
self.prep_con()
self.visit()

if __name__ == "__main__":
cnct = Connect()
cnct.make_con()
31 changes: 31 additions & 0 deletions BMI CALCULATER
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
filter_none
edit
play_arrow

brightness_4
#Python program to illustrate
# how to calculate BMI
def BMI(height, weight):
bmi = weight/(height**2)
return bmi

# Driver code
height = 1.79832
weight = 70

# calling the BMI function
bmi = BMI(height, weight)
print("The BMI is", format(bmi), "so ", end='')

# Conditions to find out BMI category
if (bmi < 18.5):
print("underweight")

elif ( bmi >= 18.5 and bmi < 24.9):
print("Healthy")

elif ( bmi >= 24.9 and bmi < 30):
print("overweight")

elif ( bmi >=30):
print("Suffering from Obesity")
54 changes: 54 additions & 0 deletions Binary Search
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Returns index of x in arr if present, else -1

def binary_search(arr, low, high, x):

if high >= low:
mid = (high + low) // 2



# If element is present at the middle itself

if arr[mid] == x:

return mid



# If element is smaller than mid, then it can only

# be present in left subarray

elif arr[mid] > x:

return binary_search(arr, low, mid - 1, x)



# Else the element can only be present in right subarray

else:

return binary_search(arr, mid + 1, high, x)



else:

# Element is not present in the array

return -1



arr = [ 2, 3, 4, 10, 40 ]

x = 10
result = binary_search(arr, 0, len(arr)-1, x)
if result != -1:

print("Element is present at index", str(result))

else:

print("Element is not present
26 changes: 26 additions & 0 deletions Breadth First search
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import collections

# BFS algorithm
def bfs(graph, root):

visited, queue = set(), collections.deque([root])
visited.add(root)

while queue:

# Dequeue a vertex from queue
vertex = queue.popleft()
print(str(vertex) + " ", end="")

# If not visited, mark it as visited, and
# enqueue it
for neighbour in graph[vertex]:
if neighbour not in visited:
visited.add(neighbour)
queue.append(neighbour)


if __name__ == '__main__':
graph = {0: [1, 2], 1: [2], 2: [3], 3: [1, 2]}
print("Following is Breadth First Traversal: ")
bfs(graph, 0)
110 changes: 110 additions & 0 deletions Car Game in Python
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import pygame
import time
import random

pygame.init()

display_width = 800
display_height = 600

black = (0,0,0)
white = (255,255,255)
red = (255,0,0)

car_width = 73

gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('A bit Racey')
clock = pygame.time.Clock()

carImg = pygame.image.load('racecar.png')

def things(thingx, thingy, thingw, thingh, color):
pygame.draw.rect(gameDisplay, color, [thingx, thingy, thingw, thingh])

def car(x,y):
gameDisplay.blit(carImg,(x,y))

def text_objects(text, font):
textSurface = font.render(text, True, black)
return textSurface, textSurface.get_rect()

def message_display(text):
largeText = pygame.font.Font('freesansbold.ttf',115)
TextSurf, TextRect = text_objects(text, largeText)
TextRect.center = ((display_width/2),(display_height/2))
gameDisplay.blit(TextSurf, TextRect)

pygame.display.update()

time.sleep(2)

game_loop()



def crash():
message_display('You Crashed')

def game_loop():
x = (display_width * 0.45)
y = (display_height * 0.8)

x_change = 0

thing_startx = random.randrange(0, display_width)
thing_starty = -600
thing_speed = 7
thing_width = 100
thing_height = 100

gameExit = False

while not gameExit:

for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit()

if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
x_change = -5
if event.key == pygame.K_RIGHT:
x_change = 5

if event.type == pygame.KEYUP:
if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT:
x_change = 0

x += x_change
gameDisplay.fill(white)

# things(thingx, thingy, thingw, thingh, color)
things(thing_startx, thing_starty, thing_width, thing_height, black)
thing_starty += thing_speed
car(x,y)

if x > display_width - car_width or x < 0:
crash()

if thing_starty > display_height:
thing_starty = 0 - thing_height
thing_startx = random.randrange(0,display_width)

####
if y < thing_starty+thing_height:
print('y crossover')

if x > thing_startx and x < thing_startx + thing_width or x+car_width > thing_startx and x + car_width < thing_startx+thing_width:
print('x crossover')
crash()
####

pygame.display.update()
clock.tick(60)


game_loop()
pygame.quit()
quit()
9 changes: 9 additions & 0 deletions Car driving
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var1=18
var2=int(input("Enter Your Age: "))
if var2>var1:
print("drive")
elif var2==var1:
print("decide")

else:
print ("do not drive")
11 changes: 11 additions & 0 deletions Cloning or Copying a list
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Python code to clone or copy a list
# Using the in-built function list()
def Cloning(li1):
li_copy = list(li1)
return li_copy

# Driver Code
li1 = [4, 8, 2, 10, 15, 18]
li2 = Cloning(li1)
print("Original List:", li1)
print("After Cloning:", li2)
6 changes: 6 additions & 0 deletions Comparison
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a = int(input("enter a\n"))
b = int(input("enter b\n"))
if b < a:
print("a is greater than b")
else:
print("b is greater than a")
5 changes: 5 additions & 0 deletions Convert Video to audio
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import moviepy.editor as mp #[at first install moviepy in ur system]

clip = mp.VideoFileClip(r'C:\\Users\\ADMIN\\Desktop\\Despacito.mp4') #[copy and paste the path where u saved ur video]

clip.audio.write_audiofile('C:\\Users\\ADMIN\\Desktop\\Despacito_cvrt.mp3') #[give the path where u want to save ur audio file]
Loading