Article 1: Basics Of Python
In this article, we are going to see some basic python programming examples which you can see as below: Problem Statement 1: Write a Python program to swap two numbers # Lab Assignment 1.1 # Write a Python program to swap two numbers. #Taken input from User a=int(input("Enter the first number:")) b=int(input("Enter the second number:")) print("Before Swapping:") print(a) print(b) #swapping Operation a,b=b,a print("After Swapping") print(a) print(b) Problem Statement 2: Write a Python program to find the greatest of 3 numbers. Program: #Lab Assignment 1.2 # Write a Python program to find the greatest of 3 numbers. #taking input from users x=int(input("Enter the first number:")) y=int(input("Enter the second number:")) z=int(input("Enter the third number:")) #using if and elif for finding largest number among entered nu...