Python Basics Tutorial How to Solve a Variable Scope Problem?

preview_player
Показать описание
Learn more about python variable scope for python programming

Patreon:
Github:
Discord:
Twitter:
twitter: @python_basics

#pythonprogramming #pythonbasics #pythonforever
Рекомендации по теме
Комментарии
Автор

Great job! This topic reminds me another frequent problem I face. Let's suppose we have to create a function. This function has arguments and some of these arguments must (strict) be integer, float, and string type. What is a good approach to guaranty: 1) type error handling, 2) block wrong or forced computations because of types, and 3) give some feedback to user about error. I think the question is complex to Python Basics, but split the problem in many simple solution may help lots of people leaning here.

isaiasprestes