-1

I wrote this code and it's not returning any output, I'm not sure why. As far as I can tell I have the returns correct but obviously since there is no output something is wrong.

def main():
    j = int(input("Enter a number "))
    age = int(input("How old are you? "))
    yourBirthPlace()
    pentapalooza(j)
    oldEnoughToDrinkInGermany(age)


def yourBirthPlace():
    return "Chicago"
def pentapalooza(j):
    j=j*5
    return j
def oldEnoughToDrinkInGermany(age):
    result=false
    LegalAge = 16
    if age>LegalAge:
        result= true
    return result


main()

1 Answers1

0

You're missing print statements

print(yourBirthPlace())
print(pentapalooza(j))
print(oldEnoughToDrinkInGermany(age))
ACarter
  • 5,688
  • 9
  • 39
  • 56
  • Note that this is already covered in our knowledge base -- see [What is the purpose of the return statement? How is it different from printing?](https://stackoverflow.com/questions/7129285/what-is-the-purpose-of-the-return-statement-how-is-it-different-from-printing) as well as the many questions closed with it as duplicate, and the _Answer Well-Asked Questions_ section of [How to Answer](https://stackoverflow.com/help/how-to-answer), including its bullet point regarding questions "that have been asked and answered many times before". – Charles Duffy Feb 27 '23 at 20:59