Cerca

Heus ací els resultats de la cerca.

2.6 Abstract classes
6 Resultats, Darrera modificació:
on = 300 self.printer_operation_history = True self.fax_machine = False def high(se... on = 600 self.printer_operation_history = True self.fax_machine = True def scan_document(self): print("El document ha est... on = 300 self.printer_operation_history = True self.fax_machine = False class MFD3(MFD,
4.1 Shallow and deep copy operations
6 Resultats, Darrera modificació:
alues could be compared, and the result would be 'True'. Moreover, when you compare two variables referencing the same object, the result would be also 'True'. To check whether both operands refer to the sa... tity: 3687888 The result of the value comparison: True The result of the identity comparison: True a_string identity: 3689048 b_string identity: 9418632 The
2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP
3 Resultats, Darrera modificació:
may only have one superclass — this is not always true, but we'll discuss this issue more a bit later. ... __', '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'bit_length', 'con
2.5 Different faces of Python methods
3 Resultats, Darrera modificació:
): if len(iban) == 20: return True else: return False </code> ... ): if len(iban) == 20: return True else: return False account_... t) <= 40 and text.isalnum(): retorn = True return retorn try:
2.9 Inheriting properties from built-in classes
3 Resultats, Darrera modificació:
Error("IBAN entered is invalid.") return True test_keys = ['GB72 HBZU 7006 7212 1253 01', 'FR... orrectly formulated account number; * returns a True value when the account number conforms to all IBA... Error("IBAN entered is invalid.") return True my_dict = IBANDict() keys = ['GB72 HBZU 7006 72
2.1 Python core syntax
2 Resultats, Darrera modificació:
__', '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'bit_length', 'con
3.1 Advanced techniques of creating and serving exceptions
2 Resultats, Darrera modificació:
d: list index out of range Is it the same object: True </code> The ''except Exception'' clause is a wid... d: list index out of range Is it the same object: True </code> == Advanced exceptions - explicitly chai
5.1 Metaprogramming
2 Resultats, Darrera modificació:
e argument: <code python> for element in (1, 'a', True): print(element, 'is', element.__class__, typ... '> <class 'int'> a is <class 'str'> <class 'str'> True is <class 'bool'> <class 'bool'> </code> When th
2.7 Encapsulation
1 Resultats, Darrera modificació:
utes **intentionally** as Python does not deliver true privacy. Why? Guido Van Rossum, best known as t