A Challenge about integers and empty lists | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

A Challenge about integers and empty lists

I just found the ABSOLUTE MOST pythonic way to turn ANY integer input into a geniously crafted empty list of length 0. The empty list will be of such craftmanship that all other empty lists will feel very empty inside out of mere jelousy. Noone has ever found a better solution to this very often occuring problem. Its debated whether that problem is NP-hard or rather NP-AU (ABSOLUTELY UNSOLVABLE). Therefore I challenge YOU to now come up with an even MORE ABSOLUTE MOST pythonic piece of code, that will solve this VERY HARD problem with EVEN MORE grace. Have fun https://code.sololearn.com/cnrns2IRNV02/?ref=app

20th Aug 2022, 10:07 PM
Fynn Nix
Fynn Nix - avatar
8 Answers
+ 6
An empty list is an empty list, it can't be "emptier" than that. https://www.sololearn.com/Discuss/1270852/?ref=app
20th Aug 2022, 10:30 PM
Lisa
Lisa - avatar
+ 5
Is this a joke?
21st Aug 2022, 12:12 AM
Steve
Steve - avatar
+ 3
Steve considering that I literally have the Tag "donttaketoseriously" I assumed that would be obvious. But yes, I don't actually think that lists could be jealous, I'm well aware, that there is no thing as "NP-AU" and I also realize, that something can't be *more* absolute most of a property, as absolute most is already stretching the superlative to a critical extend.
21st Aug 2022, 4:54 AM
Fynn Nix
Fynn Nix - avatar
+ 3
Fynn Nix Wow! I totally missed the tag. Embarrassing 😳
21st Aug 2022, 4:58 AM
Steve
Steve - avatar
+ 2
Steve 😂 nah, it's fine. I think it's rather funny than embarrassing xD
21st Aug 2022, 5:04 AM
Fynn Nix
Fynn Nix - avatar
+ 1
empty = int([])
20th Aug 2022, 10:47 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
+ 1
empty = []
20th Aug 2022, 10:48 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
+ 1
empty = {}
20th Aug 2022, 10:48 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar