Printing boolean variables

You want students who you liked teaching to know that you enjoyed having them as students.

1
2
3
4
5
6
7
name = "Aditya"
score = 98
liked = True

message = "Hi %s. You achieved a score of %d. It's [---] that I enjoyed having you as a student." % (name, score, liked)

print message

What do you use to replace [---] so that the output is:

1
Hi Aditya. You achieved a score of 98. It's True that I enjoyed having you as a student.
×

Problem Loading...

Note Loading...

Set Loading...