Parallelism is the use of grammatically similar or identical structures, meaning or meter in sentences used to achieve more balance and symmetry to a written work.<em> "Life is wonderful. Life is pain." is the parallelism because both sentences share structure.</em>
I hope you find this information useful and interesting! Good luck!