Beginer function print

Beginer function print
0

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