Python – Keywords (more diff.)

 0    23 flashcards    sir
mp3 indir Baskı oynamak kendini kontrol et
 
soru cevap
To create an alias
öğrenmeye başla
as
For debugging
öğrenmeye başla
assert
To break out of a loop
öğrenmeye başla
break
To define a class
öğrenmeye başla
class
To continue to the next iteration of a loop
öğrenmeye başla
continue
To define a function
öğrenmeye başla
def
To delete an object
öğrenmeye başla
del
Used with exceptions, what to do when an exception occurs
öğrenmeye başla
except
Used with exceptions, a block of code that will be executed no matter if there is an exception or not
öğrenmeye başla
finally
To import specific parts of a module
öğrenmeye başla
from
To declare a global variable
öğrenmeye başla
global
To import a module
öğrenmeye başla
import
To check if a value is present in a list, tuple, etc.
öğrenmeye başla
in
To test if two variables refer to the same memory space.
öğrenmeye başla
is
To create an anonymous function
öğrenmeye başla
lambda
To declare a non-local variable
öğrenmeye başla
nonlocal
A null statement, a statement that will do nothing
öğrenmeye başla
pass
To raise an exception
öğrenmeye başla
raise
To exit a function and return a value
öğrenmeye başla
return
To make a try... except statement
öğrenmeye başla
try
To create a while loop
öğrenmeye başla
while
Used to simplify file handling
öğrenmeye başla
with
To end a function, returns a generator
öğrenmeye başla
yield

Yorum yapmak için giriş yapmalısınız.