When did basketball become an Olympic sport?

Answer

1936 for men, in Berlin, Germany.