def f3_entrada(): dato = Entrada_Datos()[:7] #Lee datos a una longitud de 7 como un arreglo print(dato) #Comprueba que sea un digito if not attrget('isdigit')(dato)(): #0 1 2 3 4 5 6 7 8 9 ² ³ ¹ ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ ߀ ߁ ߂ ߃ ߄ ߅ ߆ ߇ ߈ ߉ ० १ २ ३ ४ ५ ६ ७ ८ ९ print("that's not a number lol") return varlodefunciones = f1(f2_ord(dato)) varlodefunciones2 = attrget('zfill')(hexa(varlodefunciones)[2:])(8)[-8:] if binario(varlodefunciones2) == attrget('encode')('s0up')(): #El valor en hexa de esta funcion es 0x73307570 = 1932555632 = 2365552391 print("oh yay it's a flag!", ME_FLAGE) else: print('oh noes rip u')
def get(iterable: Iterable, **attrs: Any) -> Union[Any, List[Any]]: """For each element in iterable, return first element that matches requirements and ``'find_all'`` is ``False``. Otherwise, find all elements matching and return them. Example: .. code-block:: python3 ... friends = await client.get_friends() nekit = gd.utils.get(friends, name='NeKitDS') """ # check if ALL elements matching requirements should be returned find_all = attrs.pop("find_all", False) converted = [(attrget(attr.replace("__", ".")), value) for attr, value in attrs.items()] if not find_all: for elem in iterable: if all(pred(elem) == value for pred, value in converted): return elem else: return list( filter( lambda elem: all( pred(elem) == value for pred, value in converted), iterable))