Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added oneliner for mul without arithmetic and binary expressions #155

Merged
merged 1 commit into from
Oct 28, 2018

Conversation

devarakondapranav
Copy link
Contributor

Please describe your one-line program and how to run it.
Multiplication of two integers without using arithmetic or binary operators.

What Programming Language?
Python

@devarakondapranav
Copy link
Contributor Author

#144
solution for the above issue

@wzhouwzhou wzhouwzhou added the Lang: Python Contributions made in Python label Oct 28, 2018
@wzhouwzhou wzhouwzhou added the hacktoberfest-accepted Hacktoberfest! label Oct 28, 2018
@wzhouwzhou
Copy link
Owner

Nice, mul = lambda a, b: len([True for i in range(a) for j in range(b)]) could make it even shorter

@wzhouwzhou wzhouwzhou merged commit 6478b23 into wzhouwzhou:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest! Lang: Python Contributions made in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants