import math reply = input( 'enter radius and height: ' ) radius, height = reply.split() radius, height = float( radius ), float( height ) #int and float take a single thing!!! formula = math.pi * radius * radius * height print ( formula )