From ae86ff5fa329cd204093d13ad8f349451036642a Mon Sep 17 00:00:00 2001 From: Ovando Date: Thu, 17 Nov 2016 09:39:40 -0500 Subject: [PATCH 1/2] w --- insert.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 insert.py diff --git a/insert.py b/insert.py new file mode 100644 index 0000000..40c2835 --- /dev/null +++ b/insert.py @@ -0,0 +1,35 @@ +def swap(list1, first, second): + # first = list[0] + # second = list[1] + temp = first + list1[0] = second + list1[1] = temp + +# hi + +def srt(lst): + + # print temp + for x in range(len(lst)-1): + temp = 1 + + for k in range(0,len(lst)): + + print lst[x]>=lst[k] + print lst[x],lst[k] + print lst + if lst[x]>=lst[k]: + k1=lst[x] + lst[x]=lst[k] + lst[k]=k1 + + temp=temp+1 + # temp = temp+1 + + + +l = [15,14,4,13] +# print l +srt(l) +# swap(l, 15, 14) +print l #hiilos \ No newline at end of file From a494ebf4b2e73af691c9f9606454522faa32b5db Mon Sep 17 00:00:00 2001 From: Ovando Date: Thu, 17 Nov 2016 11:51:19 -0500 Subject: [PATCH 2/2] it gets all links from a string --- scrapLinks.py | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 scrapLinks.py diff --git a/scrapLinks.py b/scrapLinks.py new file mode 100644 index 0000000..1713257 --- /dev/null +++ b/scrapLinks.py @@ -0,0 +1,101 @@ +def scrapLinks(s): + count = 0 + while True: + startLink = s.find(" +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+ +
+ Meta Stack Overflow +
+