7 Python Truths, 1 Lie — Can You Find The Lie?

# No cheating!

Liu Zuo Lin
Level Up Coding
Published in
4 min readMar 27, 2024

--

Here are 7 truths and 1 lie about Python. Try to identify the lie without cheating!

1) ~~~~dog

class Dog:
# stuff

dog = Dog()
print(~~~~dog)

^ it is possible to modify the Dog class to make ~~~~dog valid code.

2) The slice object

--

--