Search Header Logo
PYTHON KEYWORDS

PYTHON KEYWORDS

Assessment

Presentation

Mathematics

University

Practice Problem

Easy

Created by

JUAN VARGAS

Used 25+ times

FREE Resource

6 Slides • 5 Questions

1

PYTHON KEYWORDS

This activity is going to help you to learn the purpose of some keywords

Slide image

2

LAMBDA

With this keyword you can defined and call a short function Anonymously.

Slide image

3

Multiple Choice

Is it a short or a large function ?

1

Short

2

Large

4

NONLOCAL

The nonlocal keyword is used to work with variables within nested functions, where the variable must not belong to the inner function.

Slide image

5

Multiple Choice

The nonlocal function keywords is used to work with non related functions ?

1

True

2

False

6

NONE

The None keyword is used to define a null value or no value,

Slide image

7

Multiple Choice

a = none

print(a)

What would be the answer?

1

a number

2

an error

3

none

8

NOT

The not keyword is a logical operator. The return value will be Trues if the statements are not True, otherwise False will be returned.

Slide image

9

Multiple Choice

If the statement is not true, What would be the return value?

1

True

2

False

10

OR

Returns True if one of the statements is true

Slide image

11

Multiple Choice

It two of the three statements are false, what would be the answer?

1

True

2

False

PYTHON KEYWORDS

This activity is going to help you to learn the purpose of some keywords

Slide image

Show answer

Auto Play

Slide 1 / 11

SLIDE