Skip to content

Commit

Permalink
simple changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshlinux committed Dec 25, 2019
1 parent 0c788d2 commit 9e829b0
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 3 deletions.
Empty file added JSON/first.py
Empty file.
2 changes: 1 addition & 1 deletion Tkinter/mouseClick.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def middleClick(event):

root = Tk()

frame = Frame(root, width=400, height=400)
frame = Frame(root, width=800, height=400)
frame.bind('<Button-1>',leftClick)
frame.bind('<Button-2>',middleClick)
frame.bind('<Button-3>',rightClick)
Expand Down
16 changes: 16 additions & 0 deletions functions/recursion/fibonacci.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# program to find out nth fibonacci number using recursion
# made by : rakesh kumar
# last compiled : 20-12-2018


def fibonacci(n):
if(n==1):
return 0
elif(n==2):
return 1
else:
return fibonacci(n-1)+fibonacci(n-2)

if __name__ == "__main__":
for x in range(1,21):
print(fibonacci(x),end=" ")
8 changes: 8 additions & 0 deletions functions/recursion/sum_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def sum1(l):
pass



if __name__ == "__main__":
li = [1,2,4,5,6,7]
print(li)
18 changes: 18 additions & 0 deletions knowledge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from turtle import *
from random import randint
bgcolor('black')
x = 1
speed(0)
while x < 400:

r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)

colormode(255)
pencolor(r, g, b)
fd(50 + x)
rt(90.991)
x = x+1

exitonclick()
4 changes: 4 additions & 0 deletions numpy/intro1-.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import numpy as np

ar = np.array([1,2,34,5])
print(ar)
4 changes: 2 additions & 2 deletions webscraper/youtubeDownloader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import unicode_literals
import youtube_dl
# import urllib
# import shutil
# import shutil
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(
['https://www.youtube.com/watch?v=3qti7Vof_7Q&list=PLbGui_ZYuhiiaQjuOfvgx_-gzVBlCxrk0&index=1'])
['https://www.youtube.com/watch?v=skG_36Abhos'])
1 change: 1 addition & 0 deletions websites.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# !python36
import webbrowser

webbrowser.open_new_tab("http://www.binarynote.com")
webbrowser.open_new_tab("https://www.clickbank.com")
webbrowser.open_new_tab("https://account.shareasale.com/a-login.cfm?")
Expand Down

0 comments on commit 9e829b0

Please sign in to comment.