Question: Develop in python Develop a function that will swap the given numbers. Example. Input Is (4,5) output should e (5,4). Generate a random number between

Develop in python

  1. Develop a function that will swap the given numbers. Example. Input Is (4,5) output should e (5,4).
  2. Generate a random number between 1 and 10 inclusive. Ask the user for an input. If the input and the random number are the same, print "you guessed it right" else print "sorry, better luck next time".
  3. Ask the user to enter 10 values. Develop a program to do the following;

a. Printout the highest and lowest values.

b. Printout the average of the values.

c. Printout the second largest value.

5.Develop a function to check whether the input is an integer or not.

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!