(Jan-30-2020, 03:42 AM)metulburr Wrote: python code reads a lot like speech, so your requirement is not far off from the actual source code
if name in ("spiderman","antman") and salary in range(1000,2000) and city not in ("boston","dubai"): new_column=age+salary else: new_column=age*salaryFor the if condition to pass all 3 of those conditions have to return True.
Hi There,
I tried to do it as per your instruction, but it failed.
It would be great if you can provide me the complete code. I am pretty much new to python.
Thanks,
CK
Hi There,
I tried to do it as per your instruction, but it failed.
It would be great if you can provide me the complete code. I am pretty much new to python.
Thanks,
CK