Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago