import random
to_guess = random.randint(1, 1000)
count = 0
guess = 0
while guess != to_guess:
guess = int(input("Guess a number between 1 and 1000? "))
while guess < 1 or guess > 1000:
guess = int(input("Whoops, guess a number between 1 and 1000? "))
count += 1
if guess > to_guess:
print("Your guess is too high! Try a lower number.")
elif guess < to_guess:
print("Your guess is too low!. Try a higher number.")
print("You got it! The number is " + str(to_guess)+" and you got it in " + str(count) + " guesses!")
I hope this helps!
Million instructions per second
B. Transactions occur in various currencies
<span>A) All viral genomes contain both DNA and RNA. FALSE.
Viruses contain the smallest necessary amount of genetic information packaged in a capsule composed of proteins. Containing both DNA and RNA would be a redundancy that would unnecessarily increase the size of the virus and make it more difficult for the virus to penetrate a cell.
B) A retrovirus contains RNA. TRUE.
By definition a retrovirus contains single-stranded positive-sense RNA instead of DNA.
C) HIV contains two identical strands of DNA. FALSE.
HIV is a retrovirus and, therefore, contains RNA instead of DNA.
D) HIV contains reverse transcriptase. TRUE.
HIV is a retrovirus that contains an RNA genome. All retroviruses require reverse transcriptase to convert their genome from RNA to DNA once the virus has been entered the cell.
E) The capsid enters the host cell if the virus is enveloped. TRUE.
Viruses are to large to enter a cell by passive diffusion or active transport. The only remaining major form a transport into the cell is endocytosis, or being enveloped.
F) All RNA-containing viruses are retroviruses. FALSE.
By definition a retrovirus contains single-stranded positive-sense RNA. Viruses can contain RNA in other forms (ie double-stranded) and would, therefore, not be considered a retrovirus.
G) Enveloped viruses bud from the host cell. TRUE.
Viruses are to large to enter a cell by passive diffusion or active transport. The only remaining major form a transport into the cell is exocytosis. For a virus to exit the host cell and infect other cells, they must exit by exocytosis, or budding.</span>
Answer:
Explanation:
1. data type which allows quick retrieval of the name of a song given the name of a playlist(or album) and the track number would be :
map
It can be defined as a key-value pair where combination of playlist-track number would be the the key and song name/details would be the value for that corresponding key
2. data type to store the text of the steps of a recipe for how to bake a cake would be :
list
list of string datatype can be used : each item in the list will have recipe in the data part of the node
3. data type for storing file extension with the possible programs that are able to read/open that kind of file wold be
set
It can be defined as a key-value pair where file extension would be the the key and possible program list would be the value for that corresponding key
4. data type that stores all the TV station identifications (e.g. KABC, KNBC, etc..) would be :
map
as there is no duplication in the names of TV station so map with key/value pair of TV station name /details would be appropriate to be used