d = dict.fromkeys([1, 2, 3, 4])
l = list(d.keys())
l.sort()
print(l)

d = dict.fromkeys([1, 2, 3, 4], 42)
l = list(d.values())
l.sort()
print(l)


d = dict.fromkeys([1, 2, 3, 4])
l = list(d.keys())
l.sort()
print(l)

d = dict.fromkeys([1, 2, 3, 4], 42)
l = list(d.values())
l.sort()
print(l)

# argument to fromkeys is a generator
d = dict.fromkeys(i + 1 for i in range(1))
print(d)

Add test for dict.fromkeys where arg is a generator.
tests/basics: Add test for dict.fromkeys where arg is a generator.

Improves coverage because it tests the case where the arg does not have a
__len__ slot.

  d = dict.fromkeys([1, 2, 3, 4])
  l = list(d.keys())
  l.sort()
  print(l)
  
  d = dict.fromkeys([1, 2, 3, 4], 42)
  l = list(d.values())
  l.sort()
  print(l)
  
+ # argument to fromkeys is a generator
+ d = dict.fromkeys(i + 1 for i in range(1))
+ print(d)
  
Add test for dict.fromkeys where arg is a generator.
## Code Before:
d = dict.fromkeys([1, 2, 3, 4])
l = list(d.keys())
l.sort()
print(l)

d = dict.fromkeys([1, 2, 3, 4], 42)
l = list(d.values())
l.sort()
print(l)


## Instruction:
Add test for dict.fromkeys where arg is a generator.
## Code After:
d = dict.fromkeys([1, 2, 3, 4])
l = list(d.keys())
l.sort()
print(l)

d = dict.fromkeys([1, 2, 3, 4], 42)
l = list(d.values())
l.sort()
print(l)

# argument to fromkeys is a generator
d = dict.fromkeys(i + 1 for i in range(1))
print(d)
