mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-06 21:09:15 +08:00
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:
parent
8ed841e750
commit
77ca98ada2
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user