-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
311 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import numpy as np | ||
|
||
a = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)]) | ||
b = np.sum(a, 1) | ||
print(b) | ||
|
||
`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
str = "This is me rakesh" | ||
n = len(str) | ||
print('Length of string is : ',n) | ||
str = str + "Hello rakesh" | ||
print(str) | ||
print(str[0]) | ||
str = "Hello Developer" | ||
print(str[::-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
str = "Hello Developer" | ||
print(str[-1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from newspaper import Article | ||
|
||
url = 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' | ||
article = Article(url) | ||
article.download() | ||
print(article.html()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import wikipedia as wi | ||
print(wi.summary('wikipedia')) | ||
result = wi.page('rakesh kumar') | ||
print(result.url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# !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?") | ||
webbrowser.open_new_tab("https://themeforest.net/") | ||
webbrowser.open_new_tab("https://automatetheboringstuff.com") | ||
webbrowser.open_new_tab("https://automatetheboringstuff.com") |
Large diffs are not rendered by default.
Oops, something went wrong.