Recent Changes - Search:

Oktatás

* Programozás 2
  + feladatsor
  + C feladatsor
  + Python feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

* levelezősök
  + Adator. prog.
  + feladatsor
  + quick link

teaching assets


Félévek

* 2024/25/1
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

20140103a

2024

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.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2024 March 26, 13:49