Question: Create a function called Q 6 6 that loops through and prints all values less than 5 0 , 5 0 , starting with 2

Create a function called Q6 that loops through and prints all values less than 50, starting
with 2, such that the value is doubled each iteration.
For example:
24816
32
Create a list containing the following numbers: 2,3,5,7,11,13,17,19,23,29. Assign it
to Q7.
Create a function called Q8 that loops through Q7, adding all the numbers together and
returning the sum.
For example: When you invoke Q8, it should return 129 since 2+3+5+7+11+13+
17+19+23+29=129.
Create a function called Q9 that uses a loop to determine how many times, starting with
the number 3, a number can be squared until it reaches at least a twenty digit number

Step by Step Solution

3.46 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Q6 A function that prints values less than 50 starting with 2 and doubling the value each iteration ... View full answer

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 Programming Questions!