Answer:
phrase[2:5]
Explanation:
Given:
The above code segment
Required
Which instruction returns 'u a'
First, we need to get the index of u in the phrase:
u is at the third position but in programming, index starts at 0.
So, u is at index 2
Next, we need to get the index of a in the phrase:
a is at index 4
One of the ways to return a sub string from a string in python is ![string[start:stop+1]](https://tex.z-dn.net/?f=string%5Bstart%3Astop%2B1%5D)
Where:
----- index of u
----- index of a
phrase ---- The string variable
So, the instruction that returns 'u a' is: ![phrase[2:5]](https://tex.z-dn.net/?f=phrase%5B2%3A5%5D)
<em>Where 5 = 4 + 1</em>
You want to throw 2 dice and get (or show?) their value.
Their value is random, so you need to generate two numbers between 1 & 6.
You may need to display the numbers
The main part of the program needs to know the numbers to limit what the user may do next.
That's most of the first level of decomposition. You need to keep decomposing (breaking into smaller simpler pieces) (think of an outline) and deciding what objects, functions, data structures and logic you're going to use to code this.
Answer: store those building blocks in the Normal template
Explanation:
Since Ron is creating building blocks in Word, he can make the building blocks that he created available by storing those building blocks in the normal template.
It should be noted that building blocks include lists, tables, text boxes or other contents that an individual uses for his or her word document.
So as to make them readily available whenever they're needed, it is important that they should be stored in the normal template. It will allow for easy access.
Answer:
c. all of these choices
Explanation:
all of them are correct. i took a quiz on this like 2 days ago and that was the answer.
<em>hope this helpsssssssss!!!!!!!!!!! :):):)</em>