Question: Need the following questions in python 3 please. No advanced code Q3. A bacterium multiply (numbers double) every 1 hour. Develop the python function, bactMultiply()

Need the following questions in python 3 please. No advanced code

Q3. A bacterium multiply (numbers double) every 1 hour. Develop the python function, bactMultiply() which takes in a time duration in hours and computes the number of bacteria population. The function should return the value.

Example:

>>> bactMultiply(0) 1

>>> bactMultiply(4) 16

>>>bactMultiply(8) 256 >>>

Q4. Implement function allEven() that takes a list of integers and returns True if all integers in the list are even, and False otherwise.

Example:

>>> allEven([2,4,6,8]) True

>>> allEven([2,4,6,9]) False

>>> allEven([1,4,6,9]) False

Q5. Write a python function, chanceCalc(n), that compute the chance of you hitting Head in n consecutive coin tosses, and return the value.

Example:

>>>chanceCalc(2).0.25

>>> chanceCalc(8) 0.00390625

>>> chanceCalc(1) 0.5

Q6. An isogram is a word without repeating letters. Implement the Python function, isogramChecker() that ask user for a word, determine if the word is an isogram, and return True if it is or False otherwise.

Example: >>> isogramChecker() Enter word: nut

True

>>> isogramChecker() Enter word: transistor

False

>>> isogramChecker() Enter word: Dermatoglyphics

True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!