Chicken or Egg, what came first?
The chicken or the egg causality dilemma is commonly stated as the question, “Which came first: the chicken or the egg?” The dilemma stems from the observation that all chickens hatch from eggs and all chicken eggs are laid by chickens.
Well, worry not. The mystery has been finally solved. Thanks to the brilliant programming languages that made this work easy for mankind. Hard to believe? Okay, here is the proof:
Do you know that you can actually print emojis using Python? Yes, you heard it right! Programming is much more than “Hello World!”. Let’s see how to make this work. First, you need to install this package. You can do it by running the following command in cmd (run as administrator) or your python editor:
pip install emoji
After successful installation of this package, write the following piece of code and press enter:
You will get the desired result! Wondering how it solves this mystery?? The sorted method in Python actually sorts the given input in ascending order by default. If we see in the alphabetical order, “C” of chicken comes first, then “E” of an egg. Hence, the sort method is sorting the given input alphabetically and thus giving the sorted result. You can copy these emoticons directly from here.
To know more about how to use Emoji in Python, visit this.