Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

1. write a program to multiply two numbers using function python

def add_num(a,b):#function for multiplication
    multiply=a*b;
    return multiply; #return value
num1=int(input("input the number one: "))#input from user for num1
num2=int(input("input the number one: "))#input from user for num2
print("The product is",add_num(num1,num2))#call te function
Comment

Python program to multiply numbers

factor1 = 21
factor2 = 3
print(factor1 * factor2)

#output
63
Comment

Python function to multiply two numbers

def multiply( num1, num2):
    return num1 * num2
Comment

PREVIOUS NEXT
Code Example
Python :: flask error 
Python :: python time library 
Python :: from array to tuple python 
Python :: how to reverse a list in python without using inbuilt function 
Python :: fnd closest element in array numpy 
Python :: python data structures 9.4 
Python :: hstack in numpy 
Python :: joining pandas dataframes 
Python :: how to ask a question in python 
Python :: how to write post method using flask 
Python :: change shortcuts in pychar, 
Python :: how to get current latitude and longitude in python 
Python :: python code to convert celsius to fahrenheit 
Python :: __file__ python 
Python :: discordpy get role by id 
Python :: calculate the distance between two points 
Python :: django setup in windows 
Python :: lambda condition python 
Python :: max date by group pandas 
Python :: Select rows in pandas MultiIndex DataFrame 
Python :: django set random password 
Python :: outliers removal 
Python :: remove first 3 columns pandas 
Python :: bash python csv to json 
Python :: numpy sort 
Python :: python soap 
Python :: sort eigenvalues and eigenvectors python 
Python :: evaluate how much a python program memory 
Python :: pymupdf extract all text from pdf 
Python :: send telegram bot message python 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =