Question
python Spathiphyllum , more commonly known as a peace lily or white sail plant, is one of the most popular indoor houseplants that filters out
Spathiphyllum, more commonly known as a peace lily or white sail plant, is one of the most popular indoor houseplants that filters out harmful toxins from the air. Some of the toxins that it neutralizes include benzene, formaldehyde, and ammonia.
Imagine that your computer program loves these plants. Whenever it receives an input in the form of the word Spathiphyllum, it involuntarily shouts to the console the following string: "Spathiphyllum is the best plant ever!"
2nd exercise. You have 2 files:
file a contains:
SAMPLE
TREE
ROUND
GREEN
ROAD
PLAN
second file contains:
SOUND
TRAFFIC
RED
GREAT
TOMATO
PRESSURE
RINGS
SWEET
SOFT
RISER
GREET
..
..
ETC
Take each word from 2nd file, take the 1st character of the word and find matching 1st character in the 1st file and attach that word from the second file to the word in the 1st file separated by a comma. Example:
SAMPLE will become
SAMPLE, SOUND, SWEET, SOFT'
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started