def square_sum(one, two):
one = one * one
two = two * two
total = one + two
return total
def main():
text_one = input("Enter the first number: ")
one = int(text_one)
text_two = input("Enter the second number: ")
two = int(text_two)
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
one = one * one
two = two * two
total = one + two
return total
def main():
text_one = input("Enter the first number: ")
one = int(text_one)
text_two = input("Enter the second number: ")
two = int(text_two)
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
text_one = input("Enter the first number: ")
one = int(text_one)
text_two = input("Enter the second number: ")
two = int(text_two)
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
text_one = input("Enter the first number: ")
one = int(text_one)
text_two = input("Enter the second number: ")
two = int(text_two)
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
one = int(input("Enter the first number: "))
two = int(input("Enter the second number: "))
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
one = int(input("Enter the first number: "))
two = int(input("Enter the second number: "))
total = square_sum(one, two)
print("The sum of squares of {} and {} is {}".format(one, two, total))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
one = int(input("Enter the first number: "))
two = int(input("Enter the second number: "))
print("The sum of squares of {} and {} is {}".format(one, two, square_sum(one, two)))
main()
def square_sum(one, two):
return (one * one) + (two * two)
def main():
one = int(input("Enter the first number: "))
two = int(input("Enter the second number: "))
print("The sum of squares of {} and {} is {}".format(one, two, square_sum(one, two)))
main()
Style
- More lines and variables?
Simpler?
- Fewer lines and variables?
More Complex?
Style
- More lines and variables?
Simpler?
- Fewer lines and variables?
More Complex?
Focus on Readability!