Question

In the python: For questions 1, 2 and 4: Ask the user to enter the size...

In the python:

For questions 1, 2 and 4: Ask the user to enter the size of a list. Fill the list with random

numbers 0-9 and print the list.

1- (8 points) luckyNumbers.py: Find the sum of the numbers in a list, except the number 7 is

considered unlucky, so we ignore it and do not include 7's in the sum. Print the list, the sum of

lucky numbers that are not 7, and the number of 7's found in the list.

Sample run:

Enter the number of numbers to create : 6

Numbers : [6, 8, 4, 6, 6, 6]

Found 0 sevens.

Sum of lucky numbers = 36

Sample run:

Enter the number of numbers to create : 6

Numbers : [4, 2, 7, 3, 7, 7]

Found 3 sevens.

Sum of lucky numbers = 9

0 0
Add a comment Improve this question Transcribed image text
Answer #1

// OUTPUT

// If any doubt please comment

Add a comment
Know the answer?
Add Answer to:
In the python: For questions 1, 2 and 4: Ask the user to enter the size...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT