Ad

you can save a little by not writing == True

Code
Diff
  • def hello_world(world):
        return "Hello, World" if world else "Goodbye, World"
    • def hello_world(world):
    • return "Hello, World" if world == True else "Goodbye, World"
    • return "Hello, World" if world else "Goodbye, World"
Fundamentals
Logic
Code
Diff
  • identify_data_type=lambda x: type(x).__name__
    • identify_data_type=lambda x:(type(x).__repr__.__str__()).split("'")[3]
    • identify_data_type=lambda x: type(x).__name__