>>247 python の場合

if str in {'a', 'b'}:
 print('abの場合')
elif str == 'c':
 print('cの場合')

或いは変換だけなら辞書を作ってやる。
case = {'a':'abの場合' , 'b':'abの場合' , 'c':'cの場合'}
if str in case :
 print(case[str])
else:
 print("エラー")