Hi Faas,
MovieAppearancesParseddoesnt get changed at all
Because there is no assignment to it in the loop
Some beginner WL advice
- Avoid using symbol names that start with an uppercase letter, they are used by WL built-ins.
- Use functional constructs (e.g.
Map
) rather than procedural constructs (e.g. For
).
- Decouple data collection and processing
p = Interpreter["Person"]["Einstein"];
movieAppearances = EntityValue[p, "MovieAppearances"];
movieNames = #["Name"] & /@ movieAppearances
(*
{"Der ewige Jude", "Naqoyqatsi", "Trinity and Beyond: The Atomic Bomb Movie", "Atomic Power",
"The Yellow Star – The Persecution of the Jews in Europe 1933–45"}
*)
Single String
with names delimited by ;;
StringRiffle[movies, ";;"]
(* Der ewige Jude;;Naqoyqatsi;;Trinity and Beyond: The Atomic Bomb Movie;;Atomic Power;;The Yellow Star – The Persecution of the Jews in Europe 1933–45 *)