The Magic of Random effects
Roberto Ugalde
Dynamic Data Scientist and Operations Manager with over 8 years of experience in machine learning, quality control, and operational excellence. Expert in utilizing AI and Python to develop tools.
One morning I decided to make a taylor-made program for my own support,
like the friend who always tell you a nice uplifting comment?... well,
is in Python, and I really recommend you try it....
ByRober Ugalde Copyrights 2024.
import random
# Define templates
answers_templates = [
"I really enjoy {activity}. It’s something I’m passionate about.",
"{place} is on my bucket list because of its {reason}.",
"I think {person} inspires me due to their {quality}.",
"I’ve always wanted to try {skill}, it seems so interesting!",
"Having a {mindset} mindset has always helped me overcome challenges.",
"Adopting a {attitude} attitude is essential for personal growth.",
"My specialty is {specialty}. I’ve always excelled at it.",
"When I think about {dream}, I feel {emotion}.",
"The {weather} weather in {place} makes it a perfect spot for {activity}.",
"One day, I’d like to master {hobby}. It seems fascinating!",
"{person} taught me the importance of {value}.",
"I admire people who show {behavior}. It’s inspiring.",
"If I could, I’d live in {place} because of its {feature}.",
"Learning {topic} has changed the way I view the world.",
"In my free time, I love {pastime}. It keeps me happy.",
"{activity} in {place} would be a dream come true!",
"I Will Rise Again {activity}.", # New template
"Love what you do {activity} , and it will give you endurance , {behavior}." # New template
]
# Define placeholder lists
placeholder_values = {
领英推荐
"activity": ["hiking", "reading", "painting", "coding", "gardening", "dancing", "singing", "cycling", "writing", "traveling", "swimming", "cooking", "yoga", "photography", "fishing", "running", "drawing", "knitting", "gaming", "camping"],
"place": ["Japan", "Iceland", "Italy", "Australia", "Norway", "France", "Spain", "Greece", "Canada", "India", "Peru", "Brazil", "Mexico", "South Africa", "Thailand", "Switzerland", "Egypt", "Morocco", "New Zealand", "Scotland"],
"reason": ["beautiful landscapes", "rich culture", "amazing food", "welcoming locals", "unique architecture", "thriving arts scene", "historical significance", "breathtaking beaches", "adventure opportunities", "vibrant nightlife", "serene nature retreats", "family-friendly activities", "festivals and events", "wildlife and biodiversity", "opportunities for relaxation", "affordable living or travel costs", "educational experiences"],
"person": ["my father", "Marie Curie", "Elon Musk", "Albert Einstein", "Ada Lovelace", "Oprah Winfrey", "Malala Yousafzai", "Leonardo da Vinci", "Rosa Parks", "Steve Jobs", "Amelia Earhart", "Frida Kahlo", "Barack Obama", "Nikola Tesla", "JK Rowling", "Nelson Mandela", "Jane Goodall", "Martin Luther King Jr.", "Bill Gates", "Florence Nightingale"],
"quality": ["resilience", "creativity", "courage", "empathy", "humility", "integrity", "determination", "intelligence", "kindness", "dedication"],
"skill": ["playing guitar", "surfing", "writing poetry", "learning languages", "coding apps", "public speaking", "cooking gourmet meals", "teaching", "dancing", "martial arts", "woodworking", "photography", "painting", "mechanics", "sewing", "gardening", "juggling", "3D printing", "carpentry", "sculpting"],
"mindset": ["positive", "growth-oriented", "resilient", "open-minded", "focused", "creative", "collaborative", "innovative", "adaptive", "proactive", "grateful", "curious", "confident", "empathetic", "ambitious", "calm", "pragmatic", "diligent", "fearless", "flexible"],
"attitude": ["optimistic", "determined", "courageous", "kind", "supportive", "assertive", "curious", "humble", "respectful", "energetic", "adventurous", "compassionate", "tenacious", "hardworking", "reliable", "enthusiastic", "persistent", "patient", "grateful", "trustworthy"],
"specialty": ["problem-solving", "strategic thinking", "creativity", "leadership", "teamwork", "communication", "time management", "decision-making", "critical thinking", "organization", "adaptability", "resourcefulness", "mentorship", "negotiation", "conflict resolution", "data analysis", "writing", "teaching", "design", "research"],
"dream": ["traveling the world", "writing a book", "starting a business", "helping others", "learning new skills", "running a marathon", "creating art", "living off-grid", "becoming a chef", "designing a house", "inventing something", "saving the planet", "volunteering abroad", "achieving financial independence", "learning an instrument", "being a mentor", "building a legacy", "exploring space", "improving education", "making a difference"],
"emotion": ["happy", "excited", "hopeful", "peaceful", "motivated", "grateful", "content", "curious", "empowered", "fulfilled", "inspired", "ambitious", "energized", "relaxed", "focused", "enthusiastic", "confident", "joyful", "optimistic", "compassionate"],
"behavior": ["kindness", "patience", "honesty", "generosity", "resilience", "determination", "integrity", "empathy", "perseverance", "creativity", "adaptability", "humility", "bravery", "self-discipline", "open-mindedness", "optimism", "accountability", "loyalty", "teamwork", "hard work"],
"value": ["honesty", "integrity", "respect", "gratitude", "compassion", "kindness", "teamwork", "creativity", "resilience", "courage", "humility", "dedication", "perseverance", "optimism", "loyalty", "responsibility", "curiosity", "fairness", "independence", "selflessness"],
"weather": ["sunny", "rainy", "cloudy", "snowy", "windy", "stormy", "humid", "foggy", "chilly", "breezy", "clear", "hot", "cold", "mild", "freezing", "warm", "blustery", "overcast", "tropical", "crisp"],
"hobby": ["knitting", "birdwatching", "rock climbing", "playing chess", "pottery", "baking", "calligraphy", "flower arranging", "kayaking", "puzzles", "metalworking", "origami", "kite flying", "blogging", "vlogging", "soap making", "stand-up comedy", "coin collecting", "car restoration", "meditation"],
"feature": ["serene nature", "local cuisine", "rich history", "unique architecture", "adventure opportunities"],
"topic": ["machine learning", "quantum physics", "psychology", "philosophy", "graphic design"],
"pastime": ["painting", "reading", "gaming", "gardening", "writing"]
}
# Generate random answers
def generate_random_answer():
template = random.choice(answers_templates)
placeholders = {key: random.choice(values) for key, values in placeholder_values.items()}
return template.format(**placeholders)
# Generate and print answers
for _ in range(50):
print(f"A: {generate_random_answer()}")