Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.6 Abstract classes
- 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
- 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
- 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
- ): 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
- 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
- __', '__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
- 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
- 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
- utes **intentionally** as Python does not deliver true privacy. Why? Guido Van Rossum, best known as t