Cerca

Heus ací els resultats de la cerca.

2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
10 Resultats, Darrera modificació:
unt(self,account): raise AccountError("No es pot modificar un número de compte!") ... _balance != 0: raise AccountError("No es pot esborrar un compte amb saldo diferent de 0") else: self.__account = None ... if money < 0: raise AccountError("No es pot deixar el compte en negatiu") if (abs
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
5 Resultats, Darrera modificació:
xperience. But, as Immanuel Kant said, the very **esthetic experience of beauty is a judgement of huma... though the computer doesn’t care about beauty or esthetics, people do, and we must remember that a ni... plex solution may be preferred over a simple one, especially in the case of the latter causing misunde... most of all) read by humans. In fact, it’s **the essence of the Python philosophy**, and the whole of
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
5 Resultats, Darrera modificació:
vored over the conventions provided for by PEP 8, especially in the case of any conflicts, or backward... inds.” This is a quote from Ralph Waldo Emerson’s essay “Self-Reliance” where Emerson urges readers to... es </code> Such imports are preferred in Python, especially when your application is not overgrown or... at you should try to **avoid using backslashes** (escape characters) in strings. This means that: *
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
4 Resultats, Darrera modificació:
rammers, it would be useful to have some means of establishing requirements for classes in matters of ... (API) for a set of subclasses. This capability is especially useful in situations where your team or t... can_document(self): print("El document ha estat escanejat") def get_scanner_status(self): fax = "" if self.fax_machine == False else "
1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
4 Resultats, Darrera modificació:
ich drives lots of contemporary computer systems, especially those which work on the Internet; moreove... are that we'll present to you only the absolutely essential information on how network traffic is mana... ication which **demands some preliminary steps to establish the connection and other steps to finish i... lt on top of TCP. A communication which **can be established ad-hoc** (snap - just like that) is //co
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
3 Resultats, Darrera modificació:
nts Before we move on, we need to understand this essential distinction (as their names suggest): comm... hy is commenting and documenting code important? Essentially, we must not forget this simple rule by ... ight some of the more important code information, especially when publishing code in a project, sharin
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
2 Resultats, Darrera modificació:
ons. The GUI application itself consists of four essential elements: * **importing** the needed **... o use the ''from'' variant of the import; * the essence of our modification is hidden inside the cal
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
2 Resultats, Darrera modificació:
rn which challenges the OS faces when it tries to establish, maintain, and close internet connections.... se, problems may appear much earlier, e.g., while establishing the connection: <code python> import re
1.1 Classes, Instances, Attributes, Methods — introduction @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
at you are familiar with the basics of OOP, so to establish an understanding of common terms, we shoul... def turn_on(self): print("el mòbil %s està engegat" % (self.number) ) def turn_off(self): print("el mòbil %s està apagat" % (self.number) ) def call(sel
2.8 Composition vs Inheritance - two ways to the same destination @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
When you are reckless, then with the inheritance (especially multiple inheritances) you can create a h
2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
ose of you who have taken the course “Programming Essentials in Python”, the IBAN Validator should be
1.3 Settling widgets in the window's interior @info:cursos:pue:python-pcpp1:m3
1 Resultats, Darrera modificació:
the resulting number of columns and rows. That's essential if you want to imagine the resulting windo
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
1 Resultats, Darrera modificació:
sted:20231223-114345.png }} Some of the widgets (especially those that are not clickable by nature) *
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació:
odule in Python Now that we're familiar with JSON essentials, it's time to learn how to use it with Py
1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació:
s lead you through the document and show you some essential aspects. Let's start with the first line
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
1 Resultats, Darrera modificació: