Beginer function print

Hey,guys,why is not the "End of report“ printed?

time = "3pm"
mood = "good"

def report():
  print("The current time is " + time)
  print("The mood is " + mood)

print("End of report")

if your are printing the function report() this is the solution

time = “3pm”
mood = “good”

def report():
print("The current time is " + time)
print("The mood is " + mood)
print(“End of report”)
report()

run the code

1 Like