anna438
06.10.2020 •
Computers and Technology
To include a pre-formatted quote box in a document insert a ___.
*smartart graphic
*text box
*shape
*table
Solved
Show answers
More tips
- C Computers and Internet How to Set Up Internet on iPhone? Detailed Guide with Step-by-Step Instructions...
- F Family and Home How to Teach Your Child to Speak: Tips and Recommendations...
- P Philosophy Agnosticism: Opinion or Belief?...
- S Style and Beauty How to choose the best mascara for your eyelashes...
- F Food and Cooking Discover Delicious Recipes You Can Make with Ground Meat...
- C Computers and Internet Google Search Tips and Tricks: Everything You Need to Know...
- S Science and Technology Why is there no gravity on other planets?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
Answers on questions: Computers and Technology
- C Computers and Technology What three requirements are defined by the protocols used in network communications to allow message transmission across a network...
- C Computers and Technology What is a common use for append queries? combining two databases together mailing payment information to employees archiving data from live tables to archive tables sending customers...
- C Computers and Technology Hey guys can yall give me a bible verse im too selfish and how to repent:((...
- M Mathematics Least to greatest 4 1/3, the square root of 43, 12/4, 4.13...
- P Physics Aconducting material must have many free electrons to qualify as an insulator....
- H History What is the writ of habeas corpus? a. the right to bare arms b. the right to freedom of speech c. the right to freedom of the press d. the right to not be imprisoned unlawfully...
- M Mathematics Eric created a rectangular patio using one foot square paving stones which are sold in batches by the dozen. the patio measures 7 feet by 8 feet. how many batches of paving stone...
- M Mathematics In the number 4,389, the digit 3 is. times the value of the digit 3 in the number 6,532....
- H History France, unclaimed, spain, england...
- C Computers and Technology You can turn off the bold formatting for selected text by clicking the roman button...
Ответ:
In Python:
sttr = input("String: ")
ch = input("Character: ")
count = sttr.count(ch)
print(str(count)+" "+ch, end = '')
if count>1 or count==0:
print("'s")
Explanation:
This prompts the user for string
sttr = input("String: ")
This prompts the user for character
ch = input("Character: ")
This counts the number of occurrence
count = sttr.count(ch)
This prints the number of occurrence of the character
print(str(count)+" "+ch, end = '')
This checks if the number of occurrence is 0 or greater than 1.
if count>1 or count==0:
If yes, it prints 's
print("'s")