Python 3.3 print syntax error
I am in college doing intro to computer programming and I am suppose to
make a program to do some geometry calculations in python and i keep
getting a syntax error on print and i cant figure out why
print ( 'Area and Perimeter Of A Rectangle' )
Length = float(input( "Enter the Length: " ))
Width = float(input ( 'Enter the Width: ' ) )
print ( 'Area Of A Triangle' , end='\n\n' )
Base = float(input( 'Enter the Base: '))
Height = float(input( 'Enter the Height: '))
print ( 'Circumference and Volume of a Sphere' )
Radius = float(input( 'Enter the Radius: ' )
#rectangle operation
------this one-----print ( "The Width" , Width , "times the Height" ,
Length , "is" , Length * Width)
print ( 'The perimeter is' , 2 * Length + 2 * Width )
#Triangle operation
print ( 'The area of a triangle is' , 0.5 * Base * Height )
#Circumference and Volume of Sphere operation
print ('The circumference is' , 2(3.14159)(Radius))
print (' The Volume is' , 4/3 * 3.14159 * radius**3)
No comments:
Post a Comment