Skip to main content
added 65 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 55 4355 43 28 bytes

Saved 12 bytes thanks to Makonede!!!
Saved 15 bytes thanks to ovs!!!

John=Doe=[]
a=dir()
print(a[True]*dict(John=[],a[False]Doe=[]))

Try it online!Try it online!

Python 3, 55 43 bytes

Saved 12 bytes thanks to Makonede!!!

John=Doe=[]
a=dir()
print(a[True],a[False])

Try it online!

Python 3, 55 43 28 bytes

Saved 12 bytes thanks to Makonede!!!
Saved 15 bytes thanks to ovs!!!

print(*dict(John=[],Doe=[]))

Try it online!

added 9 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 5555 43 bytes

Saved 12 bytes thanks to Makonede!!!

John=[]
Doe=[]
a=iter(dir())John=Doe=[]
b=nexta=dir(a)
print(next(a)a[True],ba[False])

Try it online!Try it online!

Python 3, 55 bytes

John=[]
Doe=[]
a=iter(dir())
b=next(a)
print(next(a),b)

Try it online!

Python 3, 55 43 bytes

Saved 12 bytes thanks to Makonede!!!

John=Doe=[]
a=dir()
print(a[True],a[False])

Try it online!

added 4 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 5355 bytes

John=0John=[]
Doe=0Doe=[]
a=iter(dir())
b=next(a)
print(next(a),b)

Try it online!Try it online!

Python 3, 53 bytes

John=0
Doe=0
a=iter(dir())
b=next(a)
print(next(a),b)

Try it online!

Python 3, 55 bytes

John=[]
Doe=[]
a=iter(dir())
b=next(a)
print(next(a),b)

Try it online!

Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47
Loading