<h3 class='likesectionHead' id='the-weekly-challenge-prolog-solutions'><a id='x1-1000'></a>The Weekly Challenge 311 (Prolog Solutions)</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: Upper Lower You are given a string consists of english letters only. Write a script to convert lower case to upper and upper case to lower in the given string. GNU Prolog defines a predicate lower_upper/2 which does pretty much what this problem is asking for. We could also just use…