This guest lecture was given on the 10th of May 2023 at the "Computational Creativity" class of prof. Tim Van de Cruys & on the 16th of May 2023 for the "Humor and Creativity in Language" class by prof. Kurt Feyaerts. The first part provides an overview on computational humor with a focus on the research work of Thomas Winters. The second part shows how to generate humor using prompt engineering on GPT models like GPT-4 and ChatGPT.