Skip to content

Commit

Permalink
Search in Hetrogenious data
Browse files Browse the repository at this point in the history
  • Loading branch information
linrakesh committed Jul 20, 2019
1 parent b53d657 commit 631340a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions DataStructure/hetro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# program to search an element from a list of different type of values
# Developed by : rakesh kumar
# Last revised on : 20-lujy-2019

list =[10,20,'a','abc',40,50.6]
a = input("Enter any number")
try: # if we are able to type cast the value
b = eval(a)
if b in list:
print("found")
else:
print("not found")
except: # if some run time error occur while conversion
if a in list:
print("Found")
else:
print("not found")
2 changes: 1 addition & 1 deletion similar_word.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python program to print the similar
# words using Enchant module
# words using Enchant module

# Importing the Enchant module
import enchant
Expand Down
2 changes: 1 addition & 1 deletion string/reverseString.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
str = "This is original string"
rev = ''.join(reversed(str))
print(rev)
print(str[::-1])
2 changes: 1 addition & 1 deletion webscraper/youtubeDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
import shutil
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['https://www.youtube.com/watch?v=AOcWELTI56Q&index=3&list=PLbpAWbHbi5rMM3i--gfgjwQ404DZmwwd3'])
ydl.download(['https://www.youtube.com/watch?v=HgwCeNVPlo0'])

0 comments on commit 631340a

Please sign in to comment.