Which Came first Hen or Egg? | Mystery Solved

we all have one stupid question, which came first “Hen” or “Egg”? or “Seed” or “Tree”? The chicken, no, the egg, no, the chicken, no, the egg, no. This type of question makes your head spin right off your neck. Finally, The unsolved mystery is solved by a python interpreter. This is Easy and Crazy, Let’s move on

Hen or Egg?

# Which came first "Hen" or "Egg"

mystery = ['πŸ₯š','πŸ”']
mystery.sort()
print(mystery)

#Output

['πŸ”', 'πŸ₯š']

Finally, we got the craziest output from a python. “Hen” is first then, “Egg”

Seed or Tree?

# Which came first "Seed" or "Tree"

mystery = ['🌱','🌴']
mystery.sort()
print(mystery)

#Output

['🌱', '🌴']

=> “Seed” is first then, “Tree”

Program Reality

# Which came first "C" or "C++" or "Python"

Reality = ['C','Python,'C++']
Reality.sort()
print(Reality)

#Output
['C', 'C++', 'Python']

The C programming language was developed in 1972, the C++ programming language was developed in 1980, and Python was developed in 1991.

Previous Blog

Auto Typing Code in Python | just 2 lines: https://iterathon.tech//auto-typing-code-in-python-just-2-lines/

PROGRAMMING IS ALWAYS FUN TO LEARN ❣

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *