We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Integers Come In All Sizes
- Discussions
Integers Come In All Sizes
Integers Come In All Sizes
Sort by
recency
|
408 Discussions
|
Please Login in order to post a comment
a,b,c,d=map(int, [input() for _ in range(4) ]) print(pow(a,b)+pow(c,d))
Trying to do it with the least amount of code…
I don't really like using
input()
, so at first I had the slightly longer…Here is HackerRank Integer Come in all sizes in python solution - https://programmingoneonone.com/hackerrank-integers-come-in-all-sizes-solution-in-python.html