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
|
398 Discussions
|
Please Login in order to post a comment
For Python3
This question is self explanatory
a,a1,b,b1=int(input()),int(input()),int(input()),int(input()) print(pow(a,a1)+pow(b,b1))
a = int(input()) b = int(input()) c = int(input()) d = int(input()) print((a ** b) + (c ** d))
In just 2 lines
Here's my one-liner code