Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04
>>> list3 = [1, mystring, 3] >>> list3 [1, 'hello', 3] >>> mystring = "world" >>& ...
these tasks. Dictionaries Unlike a list, a dictionary is a collection with no fixed order. Instead, it ...
Conditionals and Looping So far, we have just been looking at data types, which should show you how p ...
>>> for s in string: print s, ... H e l l o , P y t h o n ! The for loop takes ...
>>> i = 0 >>> while i < 3: ... j = 0 ... while j < 3 ...
>>> def hello_english(Name): ... print "Hello, " + Name + "!" ... >>> def hello_hun ...
class Dog(object): def bark(self): print "Woof!" fluffy = Dog() fluffy.ba ...
poppy = Dog() poppy.set_name("Poppy") poppy.bark() This outputs the following: Click here to view code image ...
Having a custom constructor is great for when you need to accept a set of parameters for each object being ...
animal from that. Consider the following code: Click here to view code image class Car(object): color = ...
existing class: car.) By default, Python gives you all the methods the parent class has, but you can override ...
can take advantage of immediately. In fact, the number of modules included in the Standard Library is so hig ...
Index Symbols /bin directory, 132 /bin/false shell, 579 – 580 ./configure script, 498 /etc directory, 132 – 133 /e ...
/etc/host.conf file, 372 , 375 /etc/hosts file, 349 , 372 , 373 /etc/init.d file, 293 , 294 – 295 /etc/initta ...
/var directory, 135 – 136 /var/log files, 308 – 309 /var/log/vsftpd.log file, 582 /var/log/wtmp file, 228 – 22 ...
databases, 529 – 530 graphical clients, 531 , 535 MySQL command-line client, 533 – 534 PostgreSQL command-line ...
Nginx modules, 503 address-based virtual hosts, 489 addressing IPv6, 357 – 359 MAC, 361 TCP/IP broadcast/unicas ...
Android architecture, 696 – 697 Android Studio, installing, 697 creating applications, 699 installing SDK packages, ...
mod_auth, 485 mod_auth_anon, 485 mod_auth_dbm, 485 mod_auth_digest, 485 – 486 mod_autoindex, 486 mod_cgi, 486 ...
resources for information, 494 starting/stopping, 473 – 474 version numbers, determining, 472 virtual hosting, ...
«
45
46
47
48
49
50
51
52
53
54
»
Free download pdf