Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions