I need help creating a Python program that asks for 12 numbers

I need help creating a Python program that asks for 12 numbers, then uses a

loop to prompt and store the results in an array. Once all 12 numbers are entered, I need it to loop through the array and calculated the total of the 12 numbers and their average.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

There are eight cars in each team called Chevy and Ford.

There are eight cars in each team called Chevy and Ford.

One car from each team races its

opponent on the drag strip.

Read in the racing times for the eight Chevy cars and then read in the times for the eight Ford cars.

Store the times into arrays called Chevy[ ] and Ford[ ].

Then list the winner of each pair, giving the number of seconds the winner won by.

At the end declare which team won based on which team had the most wins.

Below is a sample match.

Enter the times for the Chevy cars:

5.4

7.2

4.0

9.1

5.8

3.9

6.2

8.1

Enter the times for the corresponding Ford cars:

5.8

6.9

3.9

9.2

5.8

3.8

6.0

8.5

Print:

And the winners are!

Chevy by 0.4 sec

Ford by 0.3 sec

Ford by 0.1 sec

Chevy by 0.1 sec

Tie !

Ford by 0.1 sec

Ford by 0.2 sec

Chevy by 0.4 sec

And the winning team is: F O R D !

Accept the racing times for each of the Chevy cars into the array Chevy[ ].

Accept the racing times for each of the Ford cars into the array Ford[ ].

Then declare the wining car for each race, giving the winning time in seconds.

If the times are identical, then declare the race was a tie.

Finally, declare which team won the match, assuming a tie is possible

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

I am getting stuck on getting a guess the number program to be able to count the tries taken to guess the number.

I am getting stuck on getting a guess the number program to be able to count the tries taken to guess the

number.

I can get it to choose the number and tell the user when they have selected it but I cannot get it to count the tries.

I need the output to look similar to the following.

Welcome to my Guess the number program!

Please guess a number between 1 and 10: 4

Too low

Please guess a number between 1 and 10: 5

Too low

Please guess a number between 1 and 10: 8

Too high

Please guess a number between 1 and 10: 6

You guessed it! It took you 3 attempts

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

I need help expanding the following Python code.

I need help expanding the following Python code.

I need help

in adding an option for the computer to guess as well as the user to guess a number.

I also need to add a menu system.

In case I missed it, I need it to import random at the beginning of the code and use a comment block explaining what the program does

Here’s what I have now.

while(player > 0):

num = random.randint(1, 10)

player = numberGuessingGame(num)

if player == num:

break

def numberGuessingGame(num):

highCount = 0

lowCount = 0

 

print(‘Welcome to my Guess the number program!’)

 

myGuess = int(input(‘Please guess a number between 1 and 10: ‘))

 

while myGuess > 0:

if myGuess > num:

print(‘Too high’)

myGuess = int(input(‘Please guess a number between 1 and 10: ‘))

highCount +=1

elif myGuess < num:

print(‘Too low’)

myGuess = int(input(‘Please guess a number between 1 and 10: ‘))

lowCount +=1

else:

print(‘You guessed it! It took you ‘,(highCount+lowCount), ‘ attempts’)

return myGuess

return myGuess

main()

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"