#!/usr/bin/env python
# -*- coding: utf8 -*-
""" spheretest.py - Chapter 14, exercise 1 """
#from sphere import *
import sphere

print 'Enter the radius :'
radius = int(input())

print 'The area is: ' + str(sphere.area(radius))
print 'The volume is: ' + str(sphere.volume(radius))
import circle
from rectangle import *
from graphics.3-D graphics import cuboid,sphere
a=float(input('Enter length of the rectangle: '))
b=float(input('Enter breadth of the rectangle: '))
area(a,b)
r=float(input('Enter the radius of the circle: '))
circle.area(r)
l=float(input('Enter length of the cuboid: '))
b=float(input('Enter breadth of the cuboid: '))
h=float(input('Enter height of the cuboid: '))
cuboid.area(l,b,h)
r=float(input('Enter the radius of the sphere: '))
sphere.area(r)
Beispiel #3
0
#from sphere import *
import sphere

print("Enter the radius of the sphere: ")
radius = int(input())
#print("The area is " + str(area(radius)))
#print("The volume is " + str(volume(radius)))
print("The area is " + str(sphere.area(radius)))
print("The volume is " + str(sphere.volume(radius)))
#from sphere import *
import sphere

radius=int(input("Enter radius of a sphere "))
print "Area of sphere is "+ str(sphere.area(radius))
print "Volum of sphere is "+ str(sphere.volume(radius))