en

Cerca

Heus ací els resultats de la cerca.

2.8 Composition vs Inheritance - two ways to the same destination @info:cursos:pue:python-pcpp1:m1
39 Resultats, Darrera modificació:
network card; * a Hovercraft **has a** specific engine. Composition is the process of composing an ... <code python> class Car: def __init__(self, engine): self.engine = engine class GasEngine: def __init__(self, horse_power): self.hp = horse_power
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
31 Resultats, Darrera modificació:
= 1.7 Four magic letters: CRUD == Entering a non-existing/malformed address We’ve reached the point in... e, **universal interface**. The interface itself enables the user to perform a basic set of operations – they are elementary, but complex enough to build complex services. A set of four oper... your blog post, resize a picture in the gallery, enter the current customer’s sales information, etc.
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
24 Resultats, Darrera modificació:
on the Python mailing list in 1999, and it became entry #20 in the Python Enhancement Proposals in 2004. It’s one of the //Easter eggs// (i.e., hidden, s... extremely practical and common sense, and you’re encouraged to accept them and implement in your code... er that a nicely-written program is not only more enjoyable to read, but also more **readable**. Pyth
2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
22 Resultats, Darrera modificació:
in fact, a **set of cooperating widgets**. The ''Entry'' widget not only presents a line of text, but... text according to the user’s actions. Using an ''Entry'' is necessary when you are going to ask the u... extremely complex. Fortunately, we don’t need its entire flexibility when we just want to enter and validate a line of text. Here are some of ''Entry''’s
2.9 Inheriting properties from built-in classes @info:cursos:pue:python-pcpp1:m1
19 Resultats, Darrera modificació:
ilt-in class in order to get a new class that can enrich the parent's attributes or methods. As a resu... serial numbers of sold tickets. Sound reasonable enough? Your new class will be based on the Pytho... ch is responsible for appending an element to the end of the list. This method follows the previous wa... to validate it. We'll use the IBAN Validator to ensure that our banking app dictionary contains only
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
19 Resultats, Darrera modificació:
an start the final stage of our journey – we know enough to communicate with the web service using JSO... is is why we used it before when we wanted you to enter the world of network communications, but at th... n-server'', implemented on top of the ''Node.js'' environment. ''Node.js'' is – as Wikipedia claims – ... n open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
17 Resultats, Darrera modificació:
= 2.7 Encapsulation == Attribute encapsulation Encapsulation is one of the fundamental concepts in object-oriented programming (amongst i... ds that work on those attributes within a class. Encapsulation is used to hide the **attributes** ins
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
16 Resultats, Darrera modificació:
ine. We want to show you just two of them, but we encourage you to explore further on your own: * *... * Documentation: https://pycodestyle.pycqa.org/en/latest/ * You can also install **autopep8** to ... th, line breaks, and blank lines; * source file encoding and module imports. === Indentation The in... _many_numbers): number = float(input("Enter a number: ")) sum_numbers += numbe
1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
15 Resultats, Darrera modificació:
applications (the newer one with file extensions ending with x like docx) utilizes XML to create such... ple XML document: <code xml><?xml version = "1.0" encoding = "utf-8"?> <!-- cars.xml - List of cars re... y important role: <code xml><?xml version = "1.0" encoding = "utf-8"?></code> First of all, it **decla... very original “parentheses” in which the line is enclosed: <? and ?> . As you can see, XML uses **pl
4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
13 Resultats, Darrera modificació:
cters per line), begin with a capital letter, and end with a full stop. If you need to include a long... val): return val * 2 user_value = int(input("Enter the value: ")) # fun(user_value) # user_value ... Python. For more information about the topic, we encourage you to have a closer look at PEP 483 – The... nd now, without going into too many details, it's enough to tell you that we distinguish two kinds of
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
13 Resultats, Darrera modificació:
ction named ''dumps()''. Note: the ''’s'' at the end of the function's name means string. There is a ... self.name = name self.age = age def encode_who(w): if isinstance(w, Who): re... John Doe', 42) print(json.dumps(some_man, default=encode_who)) </code> The second approach is based o... n Doe", "age": 42} </code> It seems that we know enough about how to travel from Python land to JSON
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
11 Resultats, Darrera modificació:
y important role in the IT industry. Okay, that’s enough jokes about TLA’s for one course, all the mor... try standards. The first of them is the [[https://en.wikipedia.org/wiki/IBM_3270|IBM 3270]], and the s... is the Digital Equipment Corporation’s [[https://en.wikipedia.org/wiki/VT100|VT100]]. Now it’s time ... ndow (or windows) visible on the screen. In some environments (e.g., on mobile devices) the window ca
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
10 Resultats, Darrera modificació:
may allow you to create a watch with a dedicated engraving (text). As this is an extra option, the watch with the engraving should be created using an alternative con... ''%%__init__%%'' method should not allow ordering engravings; * the regular ''%%__init__%%'' method ... propriate class variable; The text intended to be engraved should follow some restrictions: * it sh
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
te: ''pack()'' resizes the window to a size large enough to fit all the packed widgets. This is its de... ernally an extremely complicated, widget, named ''Entry''. Look at the code in the editor. <code pyth... eck Button", variable=switch) checkbutton.pack() entry = tk.Entry(window, width=30) entry.pack() window.mainloop() </code> Entry is designed to let th
1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
10 Resultats, Darrera modificació:
out REST The word you see below may look a little enigmatic: REST Are we going to convince you to tak... e a rest? Not at all. On the contrary, we want to encourage you to start the next part of our adventur... the properties changes its value, this inevitably entails the effect of changing the whole object's st... t it will work here) that transferring the states enables you to achieve results similar to those caus
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
10 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
9 Resultats, Darrera modificació:
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
7 Resultats, Darrera modificació:
2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
7 Resultats, Darrera modificació:
2.4 Decorators @info:cursos:pue:python-pcpp1:m1
5 Resultats, Darrera modificació:
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
5 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
4 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
4 Resultats, Darrera modificació:
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
4 Resultats, Darrera modificació:
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
4 Resultats, Darrera modificació:
1.8 Interacting with widget methods @info:cursos:pue:python-pcpp1:m3
4 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
3 Resultats, Darrera modificació:
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
2 Resultats, Darrera modificació:
2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
2 Resultats, Darrera modificació:
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
2 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
2 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
2 Resultats, Darrera modificació:
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
1 Resultats, Darrera modificació:
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
1 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
1 Resultats, Darrera modificació:
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
1 Resultats, Darrera modificació: