Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy3 /
20140103a2024 Write a script that prints 2024 without using any digit in the source code. $ python3 happy_new_year.py 2024 $ cat happy_new_year.py | grep "[[:digit:]]" $ Warning! If the script is executed next year, then it should still print 2024! Note If we copy this script to a newly installed Linux machine that is not connected to the Internet, it should work. The name of the directory in which the script is put shouldn't matter. Notice that the script has no command-line arguments. |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |