Apr-11-2020, 12:08 PM
def Contoh(tes, *args, **kwargs): try: return tes(*args, **kwargs) except Exception as err: print(type(err)) raise a = Contoh(nama="Tes") print(a.tes())
Error:a = Contoh(nama="Tes")
TypeError: Contoh() missing 1 required positional argument: 'tes'