Question:
Write one for loop to print out each element of the list several_things. Then, write another for loop to print out the TYPE of each element of the list several_things.
Answer:
The solution in python is as follows:
for element in several_things:
print(element)
for element in several_things:
print(type(element))
Explanation:
The solution assumes that the list several_things has already been initialized.
So, the rest of the code is explained as follows:
This line iterates through the list, several_things
for element in several_things:
This line prints each element
print(element)
This line iterates through the list, several_things for the second time
for element in several_things:
This line prints the type of each element
print(type(element))
<span>i believe the answer is C</span>
Answer:
price float(price)
Explanation:
There are four basic type of data type use in the programming to declare the
variable.
1. int: it is used for integer values.
2. float: it is used for decimal values.
3. char: it is used for character values
4. Boolean: it is used for true or false.
in the question, the one option contain the data type float (price float(price)). So, it store the value in decimal.
price int(price): it store the value in integer.
price decimal(price): it is wrong declaration of variable. their is no data type in the programming which name is decimal.
price price(decimal): it is wrong declaration of variable. their is no data type in the programming which name is price.
Answer:
i<6 is the "end guard". This means that the loop continues while this is true, and ends when this is false.
i++ is the "continuation", it is the operation executed when the loop continues. i++ increases the value of i by one.
Answer:
A BitTorrent software consumer utilizes that data into the torrent data to communicate special tracker and support shifting of that data among networks including either complete or incomplete representations about the data-set.
Explanation:
BitTorrent is based at the thought of any torrent, which is a smallish data that includes metadata regarding a host, specific tracker, that organizes the data sharing and data that is distributed. A peer that wants to advance data available need first attain a tracker for the data, generate a torrent and later share the torrent data. Different peers can next use the information included in the torrent file support all other in downloading that data. That download is organized by that tracker.