HSK 7–9 grammar · pattern
X也好/也罢,Y也好/也罢
X也好,Y也好 — whether X or Y
Pattern
+ + +
( ) can be left out · other words may come before, between and after
How it works
Two alternatives are each waved through with 也好 or 也罢, and the closing clause says the outcome is the same either way. It usually carries 都 or 反正, and 也罢 is the more resigned of the two markers.
Examples
你去也好,不去也好,我都要去。
Nǐ qù yěhǎo, bú qù yěhǎo, wǒ dōu yào qù.
Whether you go or not, I'm going.
成也罢,败也罢,总得试一试。
Chéng yěbà, bài yěbà, zǒng děi shì yi shì.
Win or lose, you have to try.
Related
别管⋯⋯,都⋯⋯ · 别管⋯⋯,都⋯⋯ — no matter …, still …无论/不管…都 · 无论/不管…都… — no matter…或⋯⋯,或⋯⋯ · 或⋯⋯,或⋯⋯ — either …, or …

See it in a story
In the app, X也好/也罢,Y也好/也罢 is underlined wherever it appears in the stories you read, and practised with sentences from them. Free.