Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2024/25/2
* 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

2025

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.

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 2025 March 24, 16:20