Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYTHON PROGRAMING LANGUAGE Write a program that first asks the user to enter a special letter. The program should then ask the user to

USING PYTHON PROGRAMING LANGUAGE

Write a program that first asks the user to enter a special letter. The program should then ask the user to enter a single line sentence containing all lowercase letters and no punctuation, except for a period at the end. The program will then output the number of times that this letter appears in the sentence.

Example:

Enter a special letter: t Enter a sentence: here is my little sentence. Your letter appears 3 times. (t and here is my little sentence. are user inputs, the rest is output by the program.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions