x = list(range(10))
a = 2
b = 4
c = 3
print(x[:])
print(x[::])
#print(x[::c])
print(x[:b])
print(x[:b:])
#print(x[:b:c])
print(x[a])
print(x[a:])
print(x[a::])
#print(x[a::c])
print(x[a:b])
print(x[a:b:])
#print(x[a:b:c])

# these should not raise IndexError
print([][1:])
print([][-1:])


x = list(range(10))
a = 2
b = 4
c = 3
print(x[:])
print(x[::])
print(x[::c])
print(x[:b])
print(x[:b:])
print(x[:b:c])
print(x[a])
print(x[a:])
print(x[a::])
print(x[a::c])
print(x[a:b])
print(x[a:b:])
print(x[a:b:c])

# these should not raise IndexError
print([][1:])
print([][-1:])

try:
    [][::0]
except ValueError:
    print('ValueError')

Enable tests for list slice getting with 3rd arg.
tests/basics: Enable tests for list slice getting with 3rd arg.

Also add a test to check case when 3rd arg is 0.

+ 
  x = list(range(10))
  a = 2
  b = 4
  c = 3
  print(x[:])
  print(x[::])
- #print(x[::c])
+ print(x[::c])
  print(x[:b])
  print(x[:b:])
- #print(x[:b:c])
+ print(x[:b:c])
  print(x[a])
  print(x[a:])
  print(x[a::])
- #print(x[a::c])
+ print(x[a::c])
  print(x[a:b])
  print(x[a:b:])
- #print(x[a:b:c])
+ print(x[a:b:c])
  
  # these should not raise IndexError
  print([][1:])
  print([][-1:])
  
+ try:
+     [][::0]
+ except ValueError:
+     print('ValueError')
+ 
Enable tests for list slice getting with 3rd arg.
## Code Before:
x = list(range(10))
a = 2
b = 4
c = 3
print(x[:])
print(x[::])
#print(x[::c])
print(x[:b])
print(x[:b:])
#print(x[:b:c])
print(x[a])
print(x[a:])
print(x[a::])
#print(x[a::c])
print(x[a:b])
print(x[a:b:])
#print(x[a:b:c])

# these should not raise IndexError
print([][1:])
print([][-1:])

## Instruction:
Enable tests for list slice getting with 3rd arg.
## Code After:

x = list(range(10))
a = 2
b = 4
c = 3
print(x[:])
print(x[::])
print(x[::c])
print(x[:b])
print(x[:b:])
print(x[:b:c])
print(x[a])
print(x[a:])
print(x[a::])
print(x[a::c])
print(x[a:b])
print(x[a:b:])
print(x[a:b:c])

# these should not raise IndexError
print([][1:])
print([][-1:])

try:
    [][::0]
except ValueError:
    print('ValueError')
