-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathm3.py
29 lines (28 loc) · 953 Bytes
/
m3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# import requests
# from bs4 import BeautifulSoup
# from collections import defaultdict
# import re
# page = requests.get("https://www.sanfoundry.com/engineering-mathematics-questions-answers-laplace-transform-properties-1/")
# soup = BeautifulSoup(page.content, 'html.parser')
# temp=soup.find_all(class_='entry-content')
# arr=temp[0].get_text().splitlines()
# ques=[]
# ans=[]
# options=defaultdict(list)
# for i in arr:
# # if i:
# # print(i)
# if re.search('^\s*[0-9].',i):
# ques.append(i)
# if re.search(r"^[a-z]+\)",i):
# opt=re.search(r"^[a-z]+\)",i).group(0)
# options[opt].append(i)
# if i.replace(' ','').startswith('ViewAnswerAnswer:'):
# ans.append(i.strip('View AnswerAnswer:'))
# # print(list(zip(ques,ans)))
# print(list(zip(ans,range(1,16))))
# print(options['a)'])
import random
s=[{random.randint(1,999):'something'} for _ in range(10)]
for i in s:
print(i[i.keys()])