loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from math import pi #This is To import the pi function
from time import sleep #This will give some time to the code to load
from datetime import datetime #This will Import the date and the time

now = datetime.now()

print ("Area Calculater is Staring up")

print ("Current time is: %s/%s/%s %s:%s" % (now.month, now.day, now.year, now.hour, now.month))

sleep(1)
dada
hint ="Don’t forget to include the correct units!\nExiting…"

option = input("Enter C for Circle or T for Triangle: ")

option = option.upper()

if option == "C":
    radius = float(input("Enter The radius: "))
    area = pi * radius**2
    print("The pie is baking")
    sleep(1)
    print("Area: %.2f.\n%s" % (area, hint))
elif option == ("T"):
    base = float(input("Enter The Base Of the Triangle"))
    height = float(input("Enter The Heigth Of The Triangle"))
    area = (0.5)baseheightC
    print ("Uni Bi Tri…")
    print ("Area: %.2f.\n%s" % (area, hint))
    sleep(1)
else:
    print("Error! Invalid Shape Selector Specified\n Exiting")