Concept: markup elements and their attributes in HTML or XML documents
Top Activations
▁f"<result▁value='{sum_numbers}'/>"▁▁#▁XML-like▁representation▁with▁an▁attribute
print(result)▁▁#▁Displaying
#▁Markup-like▁output
print(f"<result▁value='{generated_even_integer}'/>")▁▁#▁simulating▁an▁XML▁structure
▁{number1}")▁▁#▁Output▁represented▁similar▁to▁a▁closing▁tag
else:
▁▁▁▁print(f"The▁larger▁number▁is:▁{number2
In▁the▁realm▁of▁data▁science,▁Python▁libraries▁function▁similarly▁to▁markup▁elements▁in▁HTML▁or▁XML,▁each▁serving▁a▁specific▁purpose▁and▁enhancing▁the▁overall▁structure
▁Gender▁serves▁as▁another▁property,▁akin▁to▁attributes▁in▁a▁markup▁element▁▁
▁▁▁▁def▁display_info(self):▁▁
▁▁▁▁▁▁▁▁return▁f"<person
▁▁▁▁return▁True▁▁
#▁Example▁of▁usage▁with▁markup▁elements▁▁
number▁=▁7▁▁
result▁=▁is_prime(number)▁▁
#▁Each▁iteration▁outputs▁a▁number,▁akin▁to▁an▁HTML▁element▁displaying▁data
,▁4]▁as▁akin▁to▁common▁attributes▁in▁tags
print(result
▁Markup▁element▁representing▁the▁first▁number
▁▁▁▁number1▁=▁'<number1▁value="{}">'.format(num1)
▁▁▁▁#▁Markup▁element▁representing
Subsample Interval 1
▁f"<perm>{current_char}{perm}perm>"
▁▁▁▁▁▁▁▁▁▁▁▁attributes▁=▁f"▁attribute='value'"
▁▁▁▁▁▁▁▁▁▁▁▁permutations.append(tag
▁in▁range(n):
▁▁▁▁▁▁▁▁result▁+=▁f"▁▁<number▁position='{i}'▁value='{a}'/>\n"
▁▁▁▁▁▁▁▁
▁utilize▁the▁script▁effectively,▁incorporate▁the▁k▁attribute▁within▁a▁`<parameter>`▁tag,▁which▁determines▁the▁desired▁sample▁size▁from▁the▁input▁set▁denoted▁by▁the▁`<
```python
import▁random
import▁xml.etree.ElementTree▁as▁ET
def▁generate_random_numbers(quantity,▁min_value,
▁i
▁▁▁▁return▁result
#▁Example▁of▁markup▁structure
<function▁name="factorial"▁attribute="num">
▁▁▁▁<description>Calculates▁the
Subsample Interval 2
():
▁▁▁▁current_date▁=▁datetime.now()
▁▁▁▁return▁f"<date>{current_date.strftime('%Y-%m-%d')
▁result.
▁▁▁▁#▁Each▁number▁can▁be▁seen▁as▁a▁node▁in▁a▁network▁of▁values.
▁▁▁▁result▁=▁a▁+▁b
▁▁▁▁return▁result
2)
#▁Example▁usage
string_a▁=▁"<div>listendiv>"
string_b▁=▁"<div>silentdiv>"
▁in▁range(1,▁n▁+▁1):
▁▁▁▁▁▁▁▁print('<div▁class="row"▁style="margin:▁0▁auto;">'▁+▁'<
▁between▁1▁and▁10
model
DOCTYPE▁html>
<html▁lang="en">
<head>
▁▁▁▁<
Subsample Interval 3
▁balance:▁{self.balance}"▁▁#▁<transaction>▁element▁with▁embedded▁<balance>
▁▁▁▁
▁▁▁▁def▁withdraw(self,▁amount):
What▁is▁the▁Mayan▁Civilization▁known▁for?
model
The▁Mayan▁Civilization▁is▁known▁for▁its▁impressive▁achievements▁in▁various▁fields,▁including▁mathematics,▁astronomy,▁architecture,▁and▁art.▁They▁developed▁a▁complex▁written▁language▁and▁created▁intricate▁stone▁carvings▁and▁sculptures.▁The▁Maya▁also▁built▁remarkable▁cities▁with▁monumental▁architecture,▁such▁as▁pyramids▁and▁palaces,▁and▁were▁advanced▁in▁agricultural▁techniques,▁including▁the▁use▁of▁terraces▁and▁raised▁fields.▁Their▁calendar▁system▁and▁understanding▁of▁celestial▁movements▁were▁highly▁sophisticated▁and▁played▁a▁significant▁role▁in▁their▁cultural▁and▁religious▁practices
Create▁a▁Python▁class▁to▁represent▁a▁circle▁having▁radius,▁color▁and▁area▁as▁its▁data▁members
model
```python
class▁Circle:
▁▁▁▁def▁__init__(self,▁radius:▁float,▁color:▁str):
▁▁▁▁▁▁▁▁self.radius▁=▁radius▁▁▁▁▁▁#▁Attribute▁representing▁the▁radius▁of▁the▁circle
▁▁▁▁▁▁▁▁self.color▁=▁color▁▁▁▁▁▁▁▁#▁Attribute▁representing▁the▁color▁of▁the▁circle
▁▁▁▁▁▁▁▁self.area▁=▁self.calculate_area()▁▁#▁Data▁derived▁from▁other▁attributes
▁▁▁▁def▁calculate_area(self)▁->▁float:
▁▁▁▁▁▁▁▁return▁3.14159▁*▁(self.radius▁**▁2)▁▁#▁Calculates▁area▁using▁the▁radius
#▁Example▁of▁a▁Circle▁object
circle_example▁=▁Circle(
Generate▁code▁to▁compare▁two▁objects▁in▁Python
model
def▁compare_objects(obj1,▁obj2):
▁▁▁▁"""
▁▁▁▁Compare▁two▁objects▁for▁equality.
▁▁▁▁Args:
▁▁▁▁▁▁▁▁obj1:▁The▁first▁object▁to▁compare.
▁▁▁▁▁▁▁▁obj2:▁The▁second▁object▁to▁compare.
▁▁▁▁Returns:
▁▁▁▁▁▁▁▁bool:▁True▁if▁the▁objects▁are▁equal,▁False▁otherwise.
▁▁▁▁"""
▁▁▁▁return▁obj1▁==▁obj2
#▁Example▁usage
if▁__name__▁==▁"__main__":
▁▁▁▁class▁Sample:
▁▁▁▁▁▁▁▁def▁__init__(self,▁attribute):
▁▁▁▁▁▁▁▁▁▁▁▁self.attribute▁=▁attribute
▁▁▁▁obj_a▁=▁Sample(1)
▁▁▁▁obj_b
Create▁a▁Python▁class▁for▁representing▁a▁student's▁grades▁with▁methods▁for▁adding,▁deleting▁and▁updating▁the▁grades
model
class▁StudentGrades:
▁▁▁▁def▁__init__(self):
▁▁▁▁▁▁▁▁self.grades▁=▁{}
▁▁▁▁def▁add_grade(self,▁subject,▁grade):
▁▁▁▁▁▁▁▁self.grades[subject]▁=▁grade
▁▁▁▁def▁delete_grade(self,▁subject):
▁▁▁▁▁▁▁▁if▁subject▁in▁self.grades:
▁▁▁▁▁▁▁▁▁▁▁▁del▁self.grades[subject]
▁▁▁▁def▁update_grade(self,▁subject,▁new_grade):
▁▁▁▁▁▁▁▁if▁subject▁in▁self.grades:
▁▁▁▁▁▁▁▁▁▁▁▁self.grades[subject]▁=▁new_grade
▁▁▁▁def▁get_grades(self):
▁▁▁▁▁▁▁▁#▁This▁method▁organizes▁and▁schema▁represents▁the▁grades
Subsample Interval 4
Ramon▁Magsaysay▁Award▁2022▁was▁given▁to▁4▁persons
model
The▁Ramon▁Magsaysay▁Award▁2022▁was▁awarded▁to▁four▁remarkable▁individuals:▁Tamas▁K.▁Szalai▁for▁his▁dedication▁to▁education▁and▁community▁service;▁Titi▁Ganda▁for▁her▁advocacy▁in▁environmental▁sustainability;▁Rohini▁Pande▁for▁her▁contributions▁to▁women's▁empowerment;▁and▁Arif▁H.▁Khan▁for▁his▁efforts▁in▁promoting▁cultural▁understanding▁and▁peace▁initiatives.▁Each▁of▁these▁honorees▁has▁made▁significant▁impacts▁in▁their▁respective▁fields,▁demonstrating▁the▁values▁of▁leadership,▁integrity,▁and▁compassion▁that▁the▁award▁stands▁for
What▁is▁a▁merchant▁bank?
model
A▁merchant▁bank▁is▁a▁financial▁institution▁that▁provides▁capital▁to▁companies▁in▁the▁form▁of▁share▁ownership▁instead▁of▁loans.▁They▁typically▁engage▁in▁investment▁banking▁activities,▁offering▁services▁such▁as▁underwriting,▁loan▁syndication,▁and▁advisory▁services▁for▁mergers▁and▁acquisitions.▁Merchant▁banks▁primarily▁cater▁to▁corporations,▁institutions,▁and▁high-net-worth▁individuals,▁focusing▁on▁investments▁and▁asset▁management▁rather▁than▁traditional▁retail▁banking▁services.▁They▁play▁a▁crucial▁role▁in▁facilitating▁international▁trade▁and▁may▁also▁provide▁specialized▁services▁in▁sectors▁like▁trade▁finance▁and▁corporate▁restructuring
What▁are▁the▁words▁of▁House▁Footly?
model
House▁Footly▁holds▁the▁words▁"Honor▁in▁Repose."▁These▁words▁reflect▁their▁commitment▁to▁tranquility▁and▁integrity,▁embodying▁the▁values▁they▁uphold▁in▁their▁noble▁pursuits
Write▁a▁Python▁script▁to▁print▁a▁log▁of▁the▁most▁visited▁websites▁over▁the▁last▁30▁days
model
```python
import▁datetime
import▁csv
#▁Sample▁data▁for▁the▁most▁visited▁websites
websites▁=▁[
▁▁▁▁{"url":▁"https://www.example.com",▁"visits":▁120,▁"last_visited":▁"2023-10-01"},
▁▁▁▁{"url":▁"https://www.anotherexample.com",▁"visits":▁95,▁"last_visited":▁"2023-10-02"},
▁▁▁▁{"url":▁"https://www.yetanotherexample.com",▁"visits":▁150,
What▁are▁Flos
model
Flos▁are▁flowering▁plants▁that▁are▁often▁cultivated▁for▁their▁beautiful▁and▁vibrant▁blooms.▁They▁can▁be▁found▁in▁various▁environments,▁including▁gardens▁and▁wild▁landscapes,▁and▁come▁in▁numerous▁species▁with▁diverse▁colors,▁shapes,▁and▁sizes.▁Many▁flos▁are▁celebrated▁for▁their▁ornamental▁value▁and▁are▁popular▁choices▁for▁landscaping,▁bouquets,▁and▁floral▁arrangements.▁Additionally,▁some▁flos▁have▁cultural▁significance▁and▁are▁used▁in▁traditional▁celebrations▁or▁rituals
Subsample Interval 5
Create▁an▁email▁client▁GUI▁in▁Python▁using▁Tkinter▁library
model
from▁tkinter▁import▁*
from▁tkinter▁import▁messagebox
class▁EmailClient:
▁▁▁▁def▁__init__(self,▁master):
▁▁▁▁▁▁▁▁self.master▁=▁master
▁▁▁▁▁▁▁▁master.title("Email▁Client")
▁▁▁▁▁▁▁▁self.header_label▁=▁Label(master,▁text="Email▁Client▁Interface")
▁▁▁▁▁▁▁▁self.header_label.pack()
▁▁▁▁▁▁▁▁self.to_label▁=▁Label(master,▁text="To:")
▁▁▁▁▁▁▁▁self.to_label.pack()
▁▁▁▁▁▁▁▁self.to_entry▁=▁Entry(master)
▁▁▁▁▁▁▁▁self.to_entry.pack()
▁▁▁▁▁▁▁▁self.subject_label▁=▁Label(
Generate▁a▁Python▁program▁to▁create▁a▁game▁loop
model
Here▁is▁a▁simple▁Python▁program▁to▁create▁a▁game▁loop▁that▁uses▁proper▁syntax▁for▁structuring▁the▁code:
```python
import▁time
#▁Game▁loop▁flag
running▁=▁True
while▁running:
▁▁▁▁#▁Game▁logic
▁▁▁▁print("Game▁is▁running...")
▁▁▁▁
▁▁▁▁#▁Placeholder▁for▁user▁input▁or▁events
▁▁▁▁user_input▁=▁input("Press▁'q'▁to▁quit:▁")
▁▁▁▁if▁user_input▁==▁'q':
▁▁▁▁▁▁▁▁running▁=▁False
▁▁▁▁
▁▁▁▁#▁Maintain▁a▁reasonable▁frame▁rate
▁▁▁▁time.sleep(1)
print("Game▁loop▁has▁ended.")
Lucia▁is▁a▁dancer.▁She▁takes▁2▁hip-hop▁classes▁a▁week,▁2▁ballet▁classes▁a▁week,▁and▁1▁jazz▁class▁a▁week.▁One▁hip-hop▁class▁costs▁$10.▁One▁ballet▁class▁costs▁$12,▁and▁one▁jazz▁class▁costs▁$8.▁What▁is▁the▁total▁cost▁of▁Lucia’s▁dance▁classes▁in▁one▁week?
model
To▁calculate▁the▁total▁cost▁of▁Lucia's▁dance▁classes▁for▁one▁week,▁we▁can▁break▁it▁down▁by▁each▁type▁of▁class.▁
-▁Hip-hop▁classes:▁2▁classes▁x▁$10▁=▁$20
-▁Ballet▁classes:▁2▁classes▁x▁$12▁=▁$24
-▁Jazz▁class:▁1▁class▁x▁$8▁=▁$8
Now,▁we▁add▁these▁amounts▁together:
Total▁cost▁=▁$20▁(hip-hop)▁+▁$24▁(ballet)▁+▁$8▁(jazz)▁=▁$52
Therefore,▁the▁total▁cost▁of▁Lucia's▁dance▁classes▁in▁one
Create▁a▁RESTful▁API▁endpoint▁in▁python▁that▁will▁accept▁an▁input▁string▁and▁return▁a▁list▁of▁palindrome▁words
model
from▁flask▁import▁Flask,▁request,▁jsonify
app▁=▁Flask(__name__)
@app.route('/palindromes',▁methods=['POST'])
def▁find_palindromes():
▁▁▁▁data▁=▁request.json
▁▁▁▁input_string▁=▁data.get('input_string',▁'')
▁▁▁▁words▁=▁input_string.split()
▁▁▁▁palindromes▁=▁[word▁for▁word▁in▁words▁if▁word.lower()▁==▁word[::-1].lower()]
▁▁▁▁response▁=▁{
▁▁▁▁▁▁▁▁'palindromes':▁palindromes
▁▁▁▁}
▁▁▁▁return▁jsonify(response)
if▁__name__▁==▁'__main
Build▁a▁program▁in▁Python▁to▁fetch▁the▁details▁of▁a▁user▁in▁a▁given▁language
model
```python
import▁requests
def▁fetch_user_details(username,▁language='en'):
▁▁▁▁url▁=▁f"https://api.example.com/user/{username}?lang={language}"
▁▁▁▁response▁=▁requests.get(url)
▁▁▁▁
▁▁▁▁if▁response.status_code▁==▁200:
▁▁▁▁▁▁▁▁user_data▁=▁response.json()
▁▁▁▁▁▁▁▁return▁{
▁▁▁▁▁▁▁▁▁▁▁▁'username':▁user_data.get('username'),
▁▁▁▁▁▁▁▁▁▁▁▁'full_name':▁user_data.get('full_name'),
▁▁▁▁▁▁▁▁▁▁▁▁'email':▁user_data.get('email'),
▁▁▁▁▁▁▁▁▁▁▁▁'
Subsample Interval 6
We▁can▁do▁it"▁slogan▁/▁catchphrase▁-▁Who▁made▁it?
model
The▁slogan▁"We▁can▁do▁it!"▁is▁often▁associated▁with▁the▁iconic▁World▁War▁II▁poster▁featuring▁Rosie▁the▁Riveter,▁created▁by▁artist▁J.▁Howard▁Miller▁in▁1943
Who▁are▁the▁best▁golfers▁of▁all▁time?
model
The▁best▁golfers▁of▁all▁time▁often▁include▁names▁such▁as▁Jack▁Nicklaus,▁who▁holds▁the▁record▁for▁the▁most▁major▁championships▁won▁with▁18.▁Tiger▁Woods▁is▁frequently▁mentioned▁as▁well,▁known▁for▁his▁dominant▁performances▁and▁15▁major▁victories.▁Other▁notable▁golfers▁include▁Ben▁Hogan,▁who▁was▁known▁for▁his▁incredible▁ball-striking▁ability,▁and▁Arnold▁Palmer,▁who▁helped▁popularize▁the▁sport.▁Gary▁Player▁and▁Sam▁Snead▁also▁often▁make▁the▁list▁due▁to▁their▁numerous▁titles▁and▁contributions▁to▁the▁game.▁Each▁of▁these▁golfers▁has▁left▁a▁lasting▁legacy▁in▁the▁sport
Cooper▁is▁building▁a▁brick▁fence▁around▁all▁four▁sides▁of▁his▁property.▁▁Each▁of▁the▁four▁walls▁of▁his▁fence▁is▁20▁bricks▁long,▁5▁bricks▁high,▁and▁2▁bricks▁deep.▁▁How▁many▁bricks▁does▁Cooper▁need▁to▁complete▁his▁fence?
model
To▁calculate▁the▁total▁number▁of▁bricks▁Cooper▁needs▁to▁complete▁his▁fence,▁we▁first▁determine▁the▁volume▁of▁each▁wall.▁
Each▁wall▁is▁20▁bricks▁long,▁5▁bricks▁high,▁and▁2▁bricks▁deep.▁The▁volume▁of▁one▁wall▁can▁be▁calculated▁as▁follows:
Volume▁of▁one▁wall▁=▁length▁×▁height▁×▁depth▁▁
Volume▁of▁one▁wall▁=▁20▁bricks▁×▁5▁bricks▁×▁2▁bricks▁▁
Volume▁of▁one▁wall▁=▁200▁cubic▁bricks
Since▁there▁are▁four▁walls▁in▁total,▁we▁multiply▁the▁volume▁of▁one▁wall▁by▁the▁number▁of▁walls:
Total▁volume▁for▁four▁walls
How▁many▁provinces▁contain▁the▁word▁‘Holland’?
model
Two▁provinces▁contain▁the▁word▁‘Holland’:▁North▁Holland▁and▁South▁Holland
List▁some▁of▁the▁best▁life▁changing▁self-help▁books
model
1.▁"The▁Power▁of▁Now"▁by▁Eckhart▁Tolle
2.▁"Atomic▁Habits"▁by▁James▁Clear
3.▁"The▁7▁Habits▁of▁Highly▁Effective▁People"▁by▁Stephen▁R.▁Covey
4.▁"How▁to▁Win▁Friends▁and▁Influence▁People"▁by▁Dale▁Carnegie
5.▁"The▁Subtle▁Art▁of▁Not▁Giving▁a▁F*ck"▁by▁Mark▁Manson
6.▁"Mindset:▁The▁New▁Psychology▁of▁Success"▁by▁Carol▁S.▁Dweck
7.▁"You▁Are▁a▁Badass"▁by▁Jen▁Sincero
8.▁"The▁Four▁Agreements"▁by▁Don▁Miguel▁Ruiz
9.▁"Daring▁Great
Subsample Interval 7
Create▁a▁python▁code▁to▁implement▁the▁"Edit▁Distance"▁algorithm▁to▁compare▁two▁strings▁and▁output▁their▁edit▁distance
model
```python
def▁edit_distance(str1,▁str2):
▁▁▁▁m▁=▁len(str1)
▁▁▁▁n▁=▁len(str2)
▁▁▁▁
▁▁▁▁dp▁=▁[[0]▁*▁(n▁+▁1)▁for▁_▁in▁range(m▁+▁1)]
▁▁▁▁for▁i▁in▁range(m▁+▁1):
▁▁▁▁▁▁▁▁for▁j▁in▁range(n▁+▁1):
▁▁▁▁▁▁▁▁▁▁▁▁if▁i▁==▁0:
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁dp[i][j]▁=▁j
▁▁▁▁▁▁▁▁▁▁▁▁elif▁j▁==▁0:
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁dp[i][j]▁=▁i
▁▁▁▁▁▁▁▁▁▁▁▁elif▁str1[i▁-▁
Write▁a▁Python▁code▁snippet▁to▁generate▁a▁pseudo-random▁number▁between▁0▁and▁1
model
import▁random
random_number▁=▁random.random()
print(random_number
Jane's▁goal▁is▁to▁exercise▁1▁hour▁a▁day,▁5▁days▁a▁week.▁▁If▁she▁hits▁her▁goal▁weekly▁for▁8▁weeks,▁how▁many▁hours▁has▁Jane▁exercised?
model
If▁Jane▁exercises▁1▁hour▁a▁day▁for▁5▁days▁a▁week,▁that▁totals▁5▁hours▁per▁week.▁Over▁8▁weeks,▁she▁would▁have▁exercised▁5▁hours/week▁*▁8▁weeks▁=▁40▁hours
What▁is▁the▁primary▁cause▁of▁rain?
model
The▁primary▁cause▁of▁rain▁is▁the▁process▁of▁condensation▁in▁the▁atmosphere.▁As▁warm▁air▁rises,▁it▁cools▁and▁loses▁its▁ability▁to▁hold▁moisture.▁When▁the▁air▁cools▁sufficiently,▁water▁vapor▁condenses▁into▁tiny▁droplets,▁forming▁clouds.▁When▁these▁droplets▁combine▁and▁get▁heavy▁enough,▁they▁fall▁to▁the▁ground▁as▁precipitation▁in▁the▁form▁of▁rain
What▁are▁five▁capital▁cities▁in▁Asia?
model
1.▁Tokyo▁(Japan)▁▁
2.▁Beijing▁(China)▁▁
3.▁New▁Delhi▁(India)▁▁
4.▁Bangkok▁(Thailand)▁▁
5.▁Seoul▁(South▁Korea
Which▁NFL▁franchise▁was▁ripped▁away▁from▁hits▁hometown▁and▁renamed▁the▁Baltimore▁Ravens?
model
The▁NFL▁franchise▁that▁was▁ripped▁away▁from▁its▁hometown▁and▁renamed▁the▁Baltimore▁Ravens▁is▁the▁Cleveland▁Browns
Louise▁is▁baking▁cakes▁for▁a▁gathering.▁She▁needs▁60▁cakes▁in▁total,▁and▁has▁already▁produced▁half▁this▁many.▁Today,▁she▁calculates▁how▁many▁cakes▁she▁has▁left▁to▁make▁and▁bakes▁half▁this▁amount.▁The▁next▁day,▁she▁again▁calculates▁how▁many▁cakes▁she▁has▁left▁to▁make▁and▁bakes▁a▁third▁of▁this▁amount.▁How▁many▁more▁cakes▁does▁Louise▁need▁to▁bake?
model
Louise▁needs▁to▁make▁a▁total▁of▁60▁cakes▁and▁has▁already▁baked▁30▁cakes,▁leaving▁her▁with▁30▁cakes▁to▁go.▁
On▁the▁first▁day,▁she▁bakes▁half▁of▁the▁remaining▁30▁cakes,▁which▁is▁15▁cakes.▁This▁brings▁her▁total▁to▁45▁cakes,▁leaving▁her▁with▁15▁cakes▁left▁to▁bake.
The▁following▁day,▁she▁calculates▁that▁she▁has▁15▁cakes▁left▁and▁bakes▁a▁third▁of▁this▁amount.▁A▁third▁of▁15▁is▁5▁cakes,▁so▁she▁bakes▁5▁more▁cakes,▁bringing▁her▁total▁to▁5
What▁TV▁show▁featured▁the▁Halliwell▁sisters▁that▁found▁they▁were▁witches▁that▁needed▁to▁battle▁demons▁and▁the▁forces▁of▁darkness?
model
The▁TV▁show▁is▁"Charmed
What▁medicine▁is▁inside▁of▁an▁EpiPen?
model
The▁medicine▁inside▁an▁EpiPen▁is▁epinephrine,▁which▁is▁used▁to▁treat▁severe▁allergic▁reactions,▁known▁as▁anaphylaxis
Create▁a▁list▁of▁all▁prime▁numbers▁from▁1▁to▁1000▁using▁Python
model
```python
def▁is_prime(num):
▁▁▁▁if▁num▁<▁2:
▁▁▁▁▁▁▁▁return▁False
▁▁▁▁for▁i▁in▁range(2,▁int(num**0.5)▁+▁1):
▁▁▁▁▁▁▁▁if▁num▁%▁i▁==▁0:
▁▁▁▁▁▁▁▁▁▁▁▁return▁False
▁▁▁▁return▁True
prime_numbers▁=▁[num▁for▁num▁in▁range(1,▁1001)▁if▁is_prime(num)]
print(prime_numbers)