Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Functions. Decorators. Decorators. Task 3.

Create decorator validate which validates arguments in set_pixel function. All function parameters should be between 0(int) and 256(int) inclusive.

In case if all parameters are valid, set_pixel function should return "Pixel created!" message. Otherwise, it should return "Function call is not valid!" message.

Use functools.wraps where is it necessary.

Don't forget about doc stings.

Examples

>>> set_pixel(0, 127, 300)
Function call is not valid!
>>> set_pixel(0,127,250)
Pixel created!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages