Skip to content

Instantly share code, notes, and snippets.

View 5war00p's full-sized avatar
🎯
Focused

Swaroop 5war00p

🎯
Focused
View GitHub Profile
@5war00p
5war00p / easy_multiplication.py
Created December 25, 2021 16:06
easy_multplication.py contains a function which finds multiplication of two numbers using a digit by digit mulitplication (single digit multiplication) of a multiplier. Again the multiplier will be decided based on the number of digits of both numbers, the number with less digits will be selected as multiplier. This method works better when we d…
def easy_mul(a,b):
'''
params: int a
int b
return: int
description: It finds multiplications of 2 numbers
using the digit by digit of a multipler.