Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
EnPy3 /
20140103a2025 Write a script that prints 2025 without using any digit in the source code. $ python3 happy_new_year.py 2025 $ cat happy_new_year.py | grep "[[:digit:]]" $ Warning! If the script is executed next year, then it should still print 2025! Note If we copy this script to a newly installed computer 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 ] |