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 two examples of trivial file transfer protocol (TFTP) use are:
- Download router upgrades.
- Software upgrades to IP telephones.
<h3>What is
trivial file transfer protocol (
TFTP)?</h3>
Trivial file transfer protocol (TFTP) can be defined as a simple lockstep protocol which is designed and developed to avail an end user an ability to receive a file or place a file onto a remote host.
In Computer networking, the two examples of trivial file transfer protocol (TFTP) use include the following:
- Download router upgrades.
- Software upgrades to IP telephones.
Read more on FTP here: brainly.com/question/20602197
#SPJ12
In word (.docx) or powerpoint (.ppt), one can insert
images. These images may come from the internet online and other avenues for
inserting images. If one does not have internet at home, he could opt to using
the ‘clip arts’ where you click ‘Insert’ in the home bar up, and click clip
art.
<span> </span>
Answer: b. My name is BobBob
Explanation:
- $foo = 'Bob'; // Assigns foo variable the value Bob
- $bar = $foo; // Assigns the value of foo to bar
- $bar = "My name is $bar"; //changes the $bar this is the way to include variables directly in the string.
- print $bar; // this prints My name is and moves to the variable $bar which prints the value of $bar which is the value of $foo i.e. Bob
- print $foo; // prints another Bob