Answer:
name = []
price = []
for i in range(0,8):
item_name = input('name of item')
item_price = input('price of item')
name.append(item_name)
price.append(item_price)
for i in range(0, 8):
print(name[i], '_____', price[i])
Explanation:
Python code
Using the snippet Given :
Apples 2.10
Hamburger 3.25
Milk 3.49
Sugar 1.99
Bread 1.76
Deli Turkey 7.99
Pickles 3.42
Butter 2.79
name = []
price = []
#name and price are two empty lists
for i in range(0,8):
#Allows users to enter 8 different item and price choices
item_name = input('name of item')
item_price = input('price of item')
#user inputs the various item names and prices
#appends each input to the empty list
name.append(item_name)
price.append(item_price)
for i in range(0, 8):
print(name[i], '_____', price[i])
# this prints the name and prices of each item from the list.
Answer:
the bottom third
Explanation:
Check out the exampe below.
swim() would be an example of a method.
To add while loop in python language, the use of syntax is to be brought into the effect.
<h3>What is a while loop?</h3>
A while loop can be referred to as an expression of code-blocks being true to their cores. Until the blocks of the code are not proved to be true, the loop continues.
In order to add such while loop to your code, one needs to use the syntax function in python to prove the true and correctness of the code blocks.
Hence, the procedure to add while loop has been aforementioned.
Learn more about a while loop here:
brainly.com/question/15690925
#SPJ1
Answer:
Latency of an object O is shown below.
Explanation:
W segment and stalled state transmits nothing and waits for acknowledgement. The latency is 2 R TT + the time required for server that are using to transmit the object + the amount of time when server is in stalled state. Let K be the number of window that is K= O/WS .The serveries stalled state where K-1 is period of ime with period lasting RTT-(W-1)S/R
latency = 2RTT +O/R +(K-1)[S/R +RTT - WS/R]
After combining the two case
latency = 2 RTT + O/R + (K-1)[S/R +RTT - WS/R]
where [x] means maximum of (x.0). This is the complete ananlysis of the static windows.
server time for transmit the object is (K-1)[S/R +RTT - WS/R]