def add(a,b): print("Addition of two numbers", a+b) def sub(a,b): print("Subtraction of Two numbers",a-b) def mul(a,b): print("Multiplication of two numbers", a*b) def div(a,b): print("Division of two
Write a python program for given Numbers Pattern using a for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 Program: for num in range(6): for i in range(num): print(num, end=" ") print(" ") Write Python Program f
Program: def cube(a): print("The Cube of given number", a*a*a) b = int(input(" Enter any number : ")) cube(b) Output: Please Enter any numeric Value : 5
The Cube of a Given Number 5 = 125