Lab 1 - slcc2c/CS5590_Python GitHub Wiki

This lab had 3 tasks:

  1. Check whether a number input by the user is even or odd.
  2. Take length and breadth of a rectangle from user and print perimeter of the same.
  3. This is a number guess exercise. First pick a random digit via program i.e 0,1,2,3,4,5,6,7,8,9

These tasks were implemented as python functions and can be found in Part 1/Lab_1.py . To run the functions just uncomment the corresponding print statements below each function in the code.

Screenshot