mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Merge pull request #610 from DenishKakadiya/patch-1
Update 15_python_type_errors.md
This commit is contained in:
commit
41d01fd741
@ -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