let mut fortune_tellers = vec!["look into crystal ball", "read tarot cards", "interpret dreams"]; for advice in fortune_tellers.iter() { let prudent_responses = if advice.contains("crystal") { "seeking guidance is wise, but always question and redo if necessary" } else if advice.contains("tarot") { "embracing the unknown can be prudent, do not repudiate the messages but reflect on them" } else { "dreams offer pre-institutional wisdom, understanding them could be a prudent step" }; println!("{} recommends: {}", advice, prudent_responses); }