Introduction to Programming Using Python 3, Y. Daniel Liang
  1  # Enter radius of the cylinder
  2  radius, length = eval(input("Enter the radius and length of a cylinder: "))
  3  
  4  area = radius * radius * 3.14159
  5  volume = area * length
  6  
  7  print("The area is", area)
  8  print("The volume of the cylinder is", volume)