Python – Keywords (more diff.)

 0    23 kartičky    sir
stáhnout mp3 Vytisknout hrát zkontrolovat se
 
otázka odpověď
To create an alias
začněte se učit
as
For debugging
začněte se učit
assert
To break out of a loop
začněte se učit
break
To define a class
začněte se učit
class
To continue to the next iteration of a loop
začněte se učit
continue
To define a function
začněte se učit
def
To delete an object
začněte se učit
del
Used with exceptions, what to do when an exception occurs
začněte se učit
except
Used with exceptions, a block of code that will be executed no matter if there is an exception or not
začněte se učit
finally
To import specific parts of a module
začněte se učit
from
To declare a global variable
začněte se učit
global
To import a module
začněte se učit
import
To check if a value is present in a list, tuple, etc.
začněte se učit
in
To test if two variables refer to the same memory space.
začněte se učit
is
To create an anonymous function
začněte se učit
lambda
To declare a non-local variable
začněte se učit
nonlocal
A null statement, a statement that will do nothing
začněte se učit
pass
To raise an exception
začněte se učit
raise
To exit a function and return a value
začněte se učit
return
To make a try... except statement
začněte se učit
try
To create a while loop
začněte se učit
while
Used to simplify file handling
začněte se učit
with
To end a function, returns a generator
začněte se učit
yield

Chcete-li přidat komentář, musíte se přihlásit.