1.What do you like doing?
2.I like playing basketball.
3. Is it hard to learn to play basketball? (no ing on play) correct
4. Yes, it's hard to learn to play basketball. (same again)
Learn to play is there other options instead of to play- You could just say learn