Goku-kun / 1000-ways-to-print-hello-world-in-python

This is a public repository where the aim is to print "Hello, World!" in all different possible ways.
63 stars 73 forks source link

Added Hello World using Walrus Operator #127

Closed Athi223 closed 1 year ago

Athi223 commented 1 year ago

For Python 3.8, one of the biggest change is the addition of the := operator gives you a new syntax for assigning variables in the middle of expressions. This operator is colloquially known as the walrus operator.

This snippet uses the same.

Goku-kun commented 1 year ago

Hi @Athi223! This is a short but really educating example! I like it. I'm approving this and merging it in!

Thank you for your contribution.