The probability of success on any trail of a binomial experiment is 25%. Find the probability that the proportion of successes in a sample of 1000 is between 22% and 28%.
There are 6 people to be arranged in a line for a concert. How many
arrangements are possible?
Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.
? : Can be matched with any single letter.
* : Can be matched with any sequence of letters (including an empty sequence).
If the pattern matches with the given word, print True else False.
Sample Input1
3
Hello *l?
Hell He?ll
Hell ?*
Sample Output1
True
False
True
Sample Input1
3
Hello Hell*
Hell He*ll
Hell hell*
Sample Output1
True
True
False
A280nm= 0.494; A260nm = 0.364; A230nm= 0.191
a) What is the DNA concentration of the 100uL aliquot, in 3 significant figures
b) How much total DNA was purified by the procedure?
c) Is this DNA pure? If yes, how do you know? if not, what is the most likely contaminant?
d) if this DNA was contaminated with salts what would you expect in the absorbance readings?
e) If DNA was contaminated with RNA, how would you purify your DNA?
Write a program to print the following output.
Input
The first line contains a string.
The second line contains some space-separated strings.
Output
The output should be a single integer.
Explanation
scramble word = "tacren"
guessed words = ["trance", "recant"]
Since "trance" and "recant" both have length 6 then you score 54 pts each.
So the output is 108.
Sample Input1
tacren
trance recant
Sample Output1
108
Sample Input2
rceast
cat create sat
Sample Output2
2
Write a python program to print the following output.
Input
The first line of input contains a single line positive integer N.
The second line of input contains a space-separated integers denoting the cost of the item.
Output
The output is a single line integer.
Explanation
For example, Given N = 2 and cost = 10 200
Ram has to pay for both the items, he won't get anything for free.
So the output is 210.
Sample Input1
2
10 200
Sample Output1
210
Sample Input2
4
1 1 2 2
Sample Output2
4
2 In a medical study, patients are classified in 8
ways according to whether they have blood type AB+,
AB−, A+, A−, B+, B−, O+, or O−, and also according to whether their blood pressure is low, normal, or
high. Find the number of ways in which a patient can
be classified.
Python Problem Solving
You're given a positive integer: Perform the sequence of operations as per below guidelines until the value reaches 1:
If N is even --> N / 2
If N is odd --> N * 3 + 1
Print the total number of steps it took to reach 1.
Input
The first line of input contains an integer.
Output
The output should be a single integer denoting the total number of steps.
Explanation
For Example, using N = 10 as the input, with 6 steps.
10 is even - 10/2 = 5
5 is odd - 5 * 3 + 1 = 16
16 is even - 16 / 2 = 8
8 is even - 8 /2 = 4
4 is even - 4/2 = 2
2 is even - 2/2 = 1 --> Reached 1.
So the output should be 6.
Sample Input1
10
Sample Output1
6
Sample Input2
345
Sample Output2
125
Write a program that asks the user to enter an integer from 20 to 99 in numeric form. The program should output the equivalent number in words. For example, if an input of 58, the output is fifty eight
Python Program
Write a python program to print the following output.
Input
The first line contains a string S representing a unique id.
The second line contains an integer N representing group length.
Output
The output should be a single string representing the new unique id.
Sample Input1
2-4A0r7-4k
3
Sample Output1
24-A0R-74K