We can use the following python script to generate happy new year using the diamond symbol on the linux terminal.
Save the file as happynewyear.py and execute it using
You should see the output as shown below.It can be stopped by pressing any key to exit,note that it will exit only after the display of the message.
Save the file as happynewyear.py and execute it using
You should see the output as shown below.It can be stopped by pressing any key to exit,note that it will exit only after the display of the message.