Skip to content
Programming101
Programming101

Learn everything about programming

  • Home
  • CS Subjects
    • IoT – Internet of Things
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programming101
Programming101

Learn everything about programming

HackerRank Integers come in all sizes solution in python

YASH PAL, 31 July 2024

In this Integers come in all sizes problem we need to develop a python program that can read four integers separated with lines. and then we need to print the value of the expression on the output screen.

HackerRank Integers come in all sizes solution in python

Problem solution in Python 2 programming.

a=int(input())
b=int(input())
c=int(input())
d=int(input())
print a**b+c**d

Problem solution in Python 3 programming.

# Enter your code here. Read input from STDIN. Print output to STDOUT
a,b,c,d = (int(input()) for _ in range(4))
print (pow(a,b)+pow(c,d))

Problem solution in pypy programming.

a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
d = int(raw_input())
print a**b + c**d

Problem solution in pypy3 programming.

# Enter your code here. Read input from STDIN. Print output to STDOUT
a=int(input())
b=int(input())
c=int(input())
d=int(input())
print(pow(a,b)+pow(c,d))

coding problems python

Post navigation

Previous post
Next post
  • How AI Is Revolutionizing Personalized Learning in Schools
  • GTA 5 is the Game of the Year for 2024 and 2025
  • Hackerrank Day 5 loops 30 days of code solution
  • Hackerrank Day 6 Lets Review 30 days of code solution
  • Hackerrank Day 14 scope 30 days of code solution
©2025 Programming101 | WordPress Theme by SuperbThemes