Python – Keywords (more diff.)

 0    23 tarjetas    sir
descargar mp3 imprimir jugar test de práctica
 
término definición
To create an alias
empezar lección
as
For debugging
empezar lección
assert
To break out of a loop
empezar lección
break
To define a class
empezar lección
class
To continue to the next iteration of a loop
empezar lección
continue
To define a function
empezar lección
def
To delete an object
empezar lección
del
Used with exceptions, what to do when an exception occurs
empezar lección
except
Used with exceptions, a block of code that will be executed no matter if there is an exception or not
empezar lección
finally
To import specific parts of a module
empezar lección
from
To declare a global variable
empezar lección
global
To import a module
empezar lección
import
To check if a value is present in a list, tuple, etc.
empezar lección
in
To test if two variables refer to the same memory space.
empezar lección
is
To create an anonymous function
empezar lección
lambda
To declare a non-local variable
empezar lección
nonlocal
A null statement, a statement that will do nothing
empezar lección
pass
To raise an exception
empezar lección
raise
To exit a function and return a value
empezar lección
return
To make a try... except statement
empezar lección
try
To create a while loop
empezar lección
while
Used to simplify file handling
empezar lección
with
To end a function, returns a generator
empezar lección
yield

Debes iniciar sesión para poder comentar.