User:Clara: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with " =Main Title= ==Sub Title== ===Sub-sub Title=== ===Sub-sub-sub Title===")
 
No edit summary
Line 3: Line 3:
=Main Title=
=Main Title=


==Sub Title==
==Random definition generator==
 
Working with what we learned with the "house of dust" notebook I created something relevant for me. This was a random definition generator inspired by a publication I made during my internship with ''Print the future''
 
<source lang="python">
 
word = ("man", "woman", "human")
french = ("homme", "femme")
category = ("gender", "sex")
definition = ("defined", "created", "perceived", "judged", "constructed", "characterized")
term = ("masculine", "feminine")
 
import random
 
w = random.choice(word)
f = random.choice(french)
c = random.choice(category)
t = random.choice(term)
 
for x in range (10):
    w = random.choice(word)
    f = random.choice(french)
    c = random.choice(category)
    d = random.choice(definition)
    t = random.choice(term)
    print(f"definition of: {w}, a {t} word")
    print(f"\t      (en francais {f})")
    print(f"\t      One that is {d} by their {c}")
    print()
 
</source>


===Sub-sub Title===
===Sub-sub Title===


===Sub-sub-sub Title===
===Sub-sub-sub Title===

Revision as of 14:20, 5 December 2020


Main Title

Random definition generator

Working with what we learned with the "house of dust" notebook I created something relevant for me. This was a random definition generator inspired by a publication I made during my internship with Print the future

word = ("man", "woman", "human")
french = ("homme", "femme")
category = ("gender", "sex")
definition = ("defined", "created", "perceived", "judged", "constructed", "characterized")
term = ("masculine", "feminine")

import random

w = random.choice(word)
f = random.choice(french)
c = random.choice(category)
t = random.choice(term)

for x in range (10):
    w = random.choice(word)
    f = random.choice(french)
    c = random.choice(category)
    d = random.choice(definition)
    t = random.choice(term)
    print(f"definition of: {w}, a {t} word")
    print(f"\t      (en francais {f})")
    print(f"\t       One that is {d} by their {c}")
    print()

Sub-sub Title

Sub-sub-sub Title