Update 15_python_type_errors.md

Change the statement where PI is refered to as a function instead of constant.
This commit is contained in:
kakadiya denish 2024-10-10 01:11:53 -06:00 committed by GitHub
parent 8ed841e750
commit 77ca98ada2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,7 +183,7 @@ AttributeError: module 'math' has no attribute 'PI'
>>>
```
As you can see, I made a mistake again! Instead of pi, I tried to call a PI function from maths module. It raised an attribute error, it means, that the function does not exist in the module. Lets fix it by changing from PI to pi.
As you can see, I made a mistake again! Instead of pi, I tried to call a PI constant from maths module. It raised an attribute error, it means, that the attribute does not exist in the module. Lets fix it by changing from PI to pi.
```py
asabeneh@Asabeneh:~$ python
@ -358,4 +358,4 @@ If you are good at reading the error types then you will be able to fix your bug
🎉 CONGRATULATIONS ! 🎉
[<< Day 14](../14_Day_Higher_order_functions/14_higher_order_functions.md) | [Day 16 >>](../16_Day_Python_date_time/16_python_datetime.md)
[<< Day 14](../14_Day_Higher_order_functions/14_higher_order_functions.md) | [Day 16 >>](../16_Day_Python_date_time/16_python_datetime.md)