I'm new to python and I need some help on this part of my project. How can I simplify this?
 if x == 'C':
    if y == 1:
        z = 1
    if y == 2:
        z = 2
    if y == 3:
        z = 3
    if y == 4:
        z = 1
    if y == 5:
        z = 2
 
     
     
    