+ 1
The best one line code ever?
2 Antworten
+ 10
eval(input())
#runs whatever you type as code, also is a calculator
+ 5
Some nice one liners in python are custom map and filter functions:
one_line_map = lambda F,L : [F(v) for v in L]
one_line_filter = lambda F,L : [v for v in L if F(v)]