1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ycow [4]
4 years ago
6

Count characters Write a program whose input is a string which contains a character and a phrase, and whose output indicates the

number of times the character appears in the phrase. Ex: If the input is: n Monday
Computers and Technology
1 answer:
Shalnov [3]4 years ago
7 0

Answer:

str1=str(input("Enter a character and phrase "))

count= 0

for i in range(0,len(str1)):

if str1[0]==str1[i]:

count+=1

count1=count-1

print(str1[0] + ' appears ' + 'this many times in ' + str1[1:] + ' is : ' + str(count1) )

You might be interested in
Which of the following is NOT correct concerning database design? Question 2 options: Identify all fields needed to produce the
PtichkaEL [24]

The option which is not correct concerning database design is identify all fields needed to produce the required information.

What is database design?

The database design is the arrangement of the data or the information, according to the model of database.

Let's check all the option one by one,

  • Identify all fields needed to produce the required information- This does not concern with the database design.
  • Group related fields into tables-A relation database design consist of one or more than one related table. These tables are used together when the information is required.
  • Determine each table's primary key- To determine the table's primary key, is the concern with the database design.
  • Organize each piece of data into its largest useful part-The database design is the organization of data in the model of database.

The option which is not correct concerning database design is identify all fields needed to produce the required information.

Learn more about the database design here;

brainly.com/question/25694408

8 0
3 years ago
What is printed when the following code has been executed?
serg [7]
Hey it is 15 hope this helps
3 0
3 years ago
Describe the big data life cycle. Which step do you think is most useful and why?
Step2247 [10]

Answer:

Big data lifecycle consists of four phases: data collection, data storage, data analysis, and knowledge creation. Data collection phase consists of collecting data from different sources. In this phase, it is important to collect data from trusted data sources.

I think business cases analysis is the most useful step because (BCA) provides a best-value analysis that considers not only cost but other quantifiable and non-quantifiable factors supporting an investment decision. This can include but is not limited to, performance, producibility, reliability, maintainability, and supportability enhancements

Explanation:

mark me brainliest

7 0
3 years ago
Por qué el entorno gráfico de Windows es amigable con el hombre ?
elena-14-01-66 [18.8K]

Explanation:

Por que es un sistema diseñado para ayudar a las personas de forma amable

ESPERO Y TE AYUDE ;)

3 0
3 years ago
Types of data processing
Semmy [17]

Answer:

5 types

Explanation:

translation

distributed

batch

multi

real time

sorry if I'm wrong

4 0
3 years ago
Other questions:
  • What qualifies as a dependent (a) 25 year old son/daughter making$5k per year living at home, (b) 21 year old friend going to sc
    10·1 answer
  • Write a program that will read in a line of text and output the number of words in the line and the number of occurrences of eac
    11·1 answer
  • We cannot create a blank table true or false​
    8·1 answer
  • web pages within the same website often have different blank because they have different blank A) home pages, urls B) goals, sou
    12·1 answer
  • Write a function checkPalindrome that accepts a single argument, a string. The function should return true (Boolean) if the stri
    15·1 answer
  • The Electronic Communications Privacy Act requires an investigator to have a wiretap order to acquire ___________ information fr
    8·1 answer
  • Why does my inbox keep getting notifications and then disappearing?
    15·2 answers
  • There are main type of memory
    7·1 answer
  • Order the steps for changing the settings of an outlook data file
    10·1 answer
  • Anybody know the answer to this question?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!