samedi 30 janvier 2021

how to combine multiple if statements in on line python3

Hi i'm new to python and programming, How would I go about combining these:

if "Web" in source:
    source = "WEB"
if ((source == "Blu-ray") and (other == "Remux") and (reso == "1080p")):
    reso = "BD Remux"
if "DVD" in name:
    reso = "DVD Remux"
if ((source == "Ultra HD Blu-ray") and (other == "Remux") and (reso == "2160p")):
    reso = "UHD Remux"
if source == "Ultra HD Blu-ray":
    source = "Blu-ray"

Aucun commentaire:

Enregistrer un commentaire