Question: Write a program in Python to swap two numbers using function. Test Data: Sample Input: Input 1st number: 2 Input 2nd number: 4 Sample Output:

 Write a program in Python to swap two numbers using function.

Write a program in Python to swap two numbers using function. Test Data: Sample Input: Input 1st number: 2 Input 2nd number: 4 Sample Output: Before swapping: n1 2, n2 -4 After swapping: n1- 4, n2 2 Write a Python program to input any number from user and find cube of the given number using function. Sample Input: Input any number: 5 Sample Output: Cube of 5 125 **cube means here power of 3: 5*5*5 125

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!