Well a strict logic question would be "All swans are white. Lily is a swan. What color is Lily?"
But induction is more like learning about the world by observing it, and making probable guesses. So it may be correct for a machine to observe that if one swan is white, the best guess for the color of another swan (in the absence of other info) is white.