Sleep(1) isn't working


sleep(1) keeps creating an error. how to fix??

#this is a calculator lol
from math import pi
from time import sleep
from datetime import datetime
now =
print("Current time: %s/%s/%s %s:%s" % (now.month,, now.year, now.hour, now.minute)
hint = "Don't forget to include the correct units! \nExiting..."
option = raw_input("Enter C for Circle or T for Triangle: ")
option = option.upper()
if option == "C":
      radius = float(raw_input("Enter a radius: "))
      area = pi * radius**2
      print("The pie is baking...")
      print ("Area: %.2f. \n%s" % (area, hint))
elif option == "T":
      base = float(raw_input("Enter the base of the triangle: "))
      height = float(raw_input("Enter the height of the triange: "))
      area = (0.5)*base*height
      print("Uni Bi Tri...")
      print ("Area: %.2f. \n%s" % (area, hint))
      print("Error! Invalid shape selector specified. Exiting.")


Hi @greatglutengoods,

The line prior to the first occurrence of ...


... has an unclosed parenthesis.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.