Writing Multi Line Code In Python To Calculate