Here is a Python program:
tmp = input().split(' ')
c = tmp[0]; s = tmp[1]
ans=0
for i in range(len(s)):
if s[i] == c: ans+=1
# the ans variable stores the number of occurrences
print(ans)
Answer: See explanation
Explanation:
You didn't give the options to the question and I searched and couldn't find the particular question.
Here, are some of the things about technology before the invention of the printing press.
1. Before printing press, monks copied books such as bibles as they'll copy calligraphy and illustrations in order for them to spread the messages in the Bible across to people.
2. Before printing press, oral communication was the way that people communicated with each other.
3. Drawings and writings were done by hand before printing press.
4. Before the invention of printing press, in order to transcribe books, different materials that were used include wax, parchment, clay and papyrus.
Answer:
Readable code is easier to maintain.
Writing readable code saves time in the long run.
Readable code is easier to modify.
Readable code is fun to write.
Explanation:
Readability of a code means that how easy it is to read the code even if any person other than programmer reads the code. Different techniques like line breaks and indentation are used to make the code readable. the program follows an indentation pattern so it is easy and fun to write.
Hence,
it can be concluded that the true statements are:
Readable code is easier to maintain.
Writing readable code saves time in the long run.
Readable code is easier to modify.
Readable code is fun to write.
twitter i think -----------------------------