Skip to content
Snippets Groups Projects
Select Git revision
  • 5f7e8dc176661b49e12a0d8425101799ff176d19
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

list_remove.py

Blame
  • list_remove.py 172 B
    a = [1, 2, 3]
    print(a.remove(2))
    print(a)
    try:
        a.remove(2)
    except ValueError:
        print("Raised ValueError")
    else:
        raise AssertionError("Did not raise ValueError")