Answer:
def index(elem, seq):
for i in range(len(seq)):
if elem == seq[i]:
return i
return len(seq)
print(index(5, [4, 10, 8, 5, 3, 5]))
Explanation:
Create a function named index that takes elem and seq as parameters
Create a for loop that iterates through the seq. If elem is equal to the item in the seq, return the i, index of the item.
If the elem is not found in the seq, this means nothing will be returned in the loop, just return the length of the seq, len(seq)
Call the function with given parameters and print the result
Note: Since 5 is in the list in the example, the index of the 5 which is 3 will be returned
Answer:
Five variations od BLAST are as following:-
- BLASTP
- BLASTX
- TBLASTX
- BLASTN
- TBLASTN
Explanation:
BLASTP - Searches a protein database with a protein sequence.
BLASTX - This program searches protein database using a translated nucleotide sequence.
TBLASTX - Searches DNA databases using a protein query.
BLASTN -Searches a nucleotide sequence against DNA database.
TBLASTN - Searches nucleotide sequence to a DNA database.
Answer:
WYSIWYG means "what you see is what you get ".
Explanation:
It is type of editor or program that helps while creating a document. This program allows us to see the end result while creating a document i terms of who document will look like after completion.
Answer:
double decimal1, decimal2;
int whole;
Explanation:
Required
Declare 2 decimals and 1 int.
The syntax to declare a variable is:
<em>data-type variable-name;</em>
To declare decimal, we simply make use of double or float data types.
So, we have:
double decimal1, decimal2; ----> for the decimal variables
And
int whole; ---- for the whole number
Answer:
processor, primary storage, secondary storage, input devices and output devices
Explanation:
processor, primary storage, secondary storage, input devices and output devices are the five parts of computer hardware that can be found in most computer systems