Lab 1
Lab Description:
In this lab we appreciate how to formulate a code to get a result. As we learn in the first lab, we can use mathematical formulas in python. we also in the first chapter of the book learned the basic definition of the vocabulary that are we going to use, as Variables, expressions, statements, debugging, etc.
Code:
Area of a Circle
print 'AREA OF A CIRCLE' import math radius= raw_input('enter radius:') rfloat= float(radius) area= (math.pi*rfloat*rfloat) print'The area of the circle with radius',radius print'is:',area