Answer:
- letter_counts = {}
- string1 = "I have a dream"
-
- string1 = string1.lower()
-
- for x in string1:
- if(x == " "):
- continue
- if x not in letter_counts:
- letter_counts[x] = 1
- else:
- letter_counts[x] += 1
-
- print(letter_counts)
Explanation:
The solution is written in Python 3.
Firstly create a letter_count dictionary (Line 1)
Next, create a sample string and assign it to string1 variable and convert all the characters to lowercase using lower method (Line 4).
Create a for loop to traverse through each character in string1 and check if the current character is a single space, just skip to the next iteration (Line 7 -8). If the current character is not found in letter_counts dictionary, set the initial count value 1 to x property of letter_counts. Otherwise increment the x property value by one (Line 9 -12).
After completion of loop, print the letter_count dictionary. We shall get the sample output {'i': 1, 'h': 1, 'a': 3, 'v': 1, 'e': 2, 'd': 1, 'r': 1, 'm': 1}
The purpose of an expert system is to capture best practice solutions and program them into a set of rules in a software program. Expert systems are computers that use artificial intelligence technologies to simulate a behavior of a human or another subject.
The knowledge about a specific subject is transformed with this system into a software code.
Deep Learning enables image processing, speech recognition, and complex game play in artificial intelligence.
<h3>What is Deep learning?</h3>
This is known to be a part of machine learning, and it is seen as neural network that is made up of three or more layers which tries to simulate the behavior of the human brain.
Note that Deep Learning enables image processing, speech recognition, and complex game play in artificial intelligence.
See options below
1)Expert Systems
2)Deep Learning
3)Natural Language Understanding (NLU)
4)Artificial General Intelligence (AGI)
Learn more about Deep Learning from
brainly.com/question/27844272
#SPJ1
Answer: Style inheritance
Explanation:
Style inheritance is used to design style sheets. It is a process in which properties are inherited by children from a parent element. For example you wish that all text on a page use same font color i.e. red. You can apply they following style for <body> tag like {body color:red;}. All the elements in the web page will inherit this font color. This is better to use than to create styles for each tag. Every heading and paragraph will be displayed in this font color until you define different color for particular element.