Code - 150+ words - Experience, Experiment, Speculation

 

%%capture captured_number_26



import re


input_string = "Experience, Experiment, Speculation, Philosophy, Logic, Ideas, Knowledge, Belief, Instinct, Motivation, Fear, Hope, Happiness, Suffering, Pleasure, Bliss, Explanation, Service, Life, Home, House, Hotel, Road, Opportunity, Marriage, Sex, Safety, Security, Well-being, Video, Audio, Music, Movies, Alarm, Automation, Development, Goodness, Welfare work, System, Process, Cheating, Honesty, Faith, Ego, Intelligence, Soil, Colour, Perception, Memory, Focus, Concentration, Protection, Reward, Wisdom, Eternity, Jewellery, Cleanliness, Problems, Solutions, Games, Business, Water, Bulb, Mirror, Money, Paper, Box, Tubelight, Iron, Chess, Psychology, Meaning, Books, Person, Gold, Social media, Media, Company, Toys, Doors, Mobiles, Laptop, Universe, Kissing, Cricket, Football, Tennis, Entertainment, Good fortune, Auspiciousness, Auspicious work, Well-being, Satisfaction, Convenience, Comfort, Help, Aid, Assistance, Utility, Merit, Strength, Asset, Bonus, Boons, Blessings, Virtue, Perk, Usefulness, Helpfulness, Value, Profit, Gifts, Beauty, Lust, Stress, Crisis, Difficulty, Issues, Trouble, Adversity, Failure, Misfortune, Tragedy, Sorrow, Distress, Disaster, Misery, Trauma, Pain, Potato, Onion, Garlic, Ginger, Action, Reaction, Work, Thoughts, Ambassador, Challenges, Ability, Skill, Talent, Overcoming crisis, Liberation, Well-wishers, Pride, Goodness, Anxiety"


# Split the input string into a list of words

words = [word.strip() for word in input_string.split(',')]


paragraph = """Thinking good will always be all-good for everything, everyone, every circumstance, every occurrence, every event, every occasion, every experience, every incident, every possibility, every probability, every opportunity, every case, every affair, every entity, every universe, every object, every world, every reality, every imagination, every happening, every property, every action, every condition, every situation, every context, entirety, totality, entireness, completeness, complete whole, whole, complete, full, overall, all, total, wholeness, fullness, every bit, every complete whole, every existence, every creation, every design, every information, every chance, every topic, ever option, every fact, every actuality, every invention, every effect, every effort, every emotion, every behaviour, every thought, every principle, every word, every character, every activity, every performance, every place, every combination, every desire, every endeavour, every idea, every belief, every doctrine, every phenomenon, every sensation, every noumenon, every appearance, every development, every instance, every manifestation, every category, every concept, every substance, every form, every system, every instant, every language, every aspect, every perspective, every change, every description, every senses, every perception, every perfection, and every being.


"""


for word in words:

    modified_paragraph = re.sub(r'\bThinking good\b', word, paragraph) #replacing “Thinking good”

    print(f"{modified_paragraph}\n")



# Specify the file path

file_path = '/content/150+_words_experiments_speculation.txt'


# Save the captured output to the file

with open(file_path, 'w') as file:

    file.write(captured_number_26.stdout)


# Print a message indicating the file has been saved

print(f"Output saved to: {file_path}")







Comments

Popular posts from this blog

Python Code for generation of “Everything about everything will always be all-good for ________.”

Python code - 2 replacement double code

Python code for word "every" iteration