Рет қаралды 70
One of the tricky parts of a weakly typed language (where the type of a variable is interpreted at runtime) like Python is it can lead to unnecessary runtime errors - you don't know when a parameter is incorrect until you run the code. Fortunately, with the help of type hints, we can indicate the types of parameters and variables to ensure we're using everything correctly. Let's take a few minutes to explore how this works and how you can catch these bugs without having to run your code!
Have questions? Let me know in the comments below!
Want to support the channel? Donate to my fundraiser! main.acsevents....