CSL 323 Compiler Construction
Lab Tasks
1. Implement for loop using range function to print numbers any range of numbers.
2. Using a combination of while loop and else condition print a number if it is less
than 5, otherwise else statement gets executed.
3. Make a list of shapes and then find a particular shape using If else statement and
if you enter a shape that doesn’t exist it should print an error message.
4. Make two list of random positive and negative numbers merge them and then
sort them using inbuilt sort function.