Skip to content
Snippets Groups Projects
Select Git revision
  • e5a790ede42e38593c36faa5514bbd005b6e9d9f
  • main default protected
  • 3D_UNet
  • notebooksv1
  • scaleZYX_mean
  • notebooks
  • convert_tiff_folders
  • test
  • notebook_update
  • threshold-exploration
  • optimize_scaleZYXdask
  • layered_surface_segmentation
  • conv_zarr_tiff_folders
  • 3d_watershed
  • tr_val_te_splits
  • save_files_function
  • memmap_txrm
  • v0.4.1
  • v0.4.0
  • v0.3.9
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.0
25 results

setup.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    homework1.py 801 B
    """
    Example student code. This file is automatically generated from the files in the instructor-directory
    """
    def reverse_list(mylist): 
        """
        Given a list 'mylist' returns a list consisting of the same elements in reverse order. E.g.
        reverse_list([1,2,3]) should return [3,2,1] (as a list).
        """
        # TODO: 1 lines missing.
        raise NotImplementedError("Implement function body")
    
    def add(a,b): 
        """ Given two numbers `a` and `b` this function should simply return their sum:
        > add(a,b) = a+b """
        # TODO: 1 lines missing.
        raise NotImplementedError("Implement function body")
    
    if __name__ == "__main__":
        # Problem 1: Write a function which add two numbers
        print(f"Your result of 2 + 2 = {add(2,2)}")
        print(f"Reversing a small list", reverse_list([2,3,5,7]))