Ad
Fundamentals
Strings

The shortest thing ever XD

This is why you don't do this

Code
Diff
  • #
    • s=lambda s:s[::-1]
    • #
Fundamentals
Strings

Even shorter XD

Code
Diff
  • stre=lambda s:s[::-1]
    • reverse_string=lambda s:s[::-1]
    • stre=lambda s:s[::-1]
Fundamentals
Strings

Previous thing, but lambda

Code
Diff
  • reverse_string = lambda s: s[::-1]
    • def reverse_string(s):
    • return s[::-1]
    • reverse_string = lambda s: s[::-1]
Strings
Fundamentals

I turned it into a lambda function
(not much)

Code
Diff
  • hNotation = lambda var, val: f'{str(type(val))[8].lower()}{var.title()}'
        
    • def hNotation(var, val):
    • return f'{str(type(val))[8].lower()}{var.title()}'
    • hNotation = lambda var, val: f'{str(type(val))[8].lower()}{var.title()}'
Code
Diff
  • Hinata = lambda Naruto, equals, cool: eval("{} {} {}".format(Naruto, equals, cool))
    • eval(compile((_ := __import__("ast")).fix_missing_locations(_.Module(body=[_.Expr(value=_.Call(func=_.Attribute(value=_.Call(func=_.Name(id='globals', ctx=_.Load()), args=[], keywords=[]), attr='update', ctx=_.Load()), args=[_.Dict(keys=[_.Constant(value='calc')], values=[_.Lambda(args=_.arguments(posonlyargs=[], args=[_.arg(arg='_')], kwonlyargs=[], kw_defaults=[], defaults=[]), body=_.Call(func=_.Name(id='eval', ctx=_.Load()), args=[_.Name(id='_', ctx=_.Load())], keywords=[]))])], keywords=[]))], type_ignores=[])), "your mom LOL!", "exec"))
    • Hinata = lambda Naruto, equals, cool: eval("{} {} {}".format(Naruto, equals, cool))