Answer:
start→ randomly pick a fruit from the list→ if the first fruit is 'apple', pick 'banana', else if 'orange', pick 'grape', else if 'grape', pick 'banana'→ print second fruit→end.
Explanation:
To pick a second fruit, some conditions have to be met,
- if you pick an apple, the second fruit should be a banana.
- if you pick an orange, the second fruit should be a grape.
- if you pick a grape, the second fruit should be a banana.
Answer:
lines = input("enter the lines of strings: ")
line_list = lines.splitlines()
with open("third_characters.txt", "w+") as file:
for line in line_list:
file.write(line[2])
file.write("\n")
Explanation:
The python module gets the input of string values from the user and splits it into a list of strings. The third character on each string item is retrieved and saved in a document file named 'third_characters.txt' with each character on a single line.
It is home because file is about your files and insert is about inserting stuff and view is for comments and other stuff
Answer:
any kind of unwanted, unsolicited digital communication that gets sent out in bulk