Python Forum
Is Python strongly or weakly typed?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Python strongly or weakly typed?
#3
Let's make a collection of TypeError, ValueError, InvalidOperation, etc.

In [68]: int('0.3')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-68-0d64588ae80e> in <module>()
----> 1 int('0.3')

ValueError: invalid literal for int() with base 10: '0.3'
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Is Python strongly or weakly typed? - by amandio - Jul-10-2018, 05:31 PM
RE: Is Python strongly or weakly typed? - by DeaD_EyE - Jul-12-2018, 02:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't stop keyboard listener to grab chars typed inside CTk window Valjean 9 1,553 Sep-25-2023, 08:07 PM
Last Post: deanhystad
  eliminating letters when typed in python window deebo 0 1,782 Jan-05-2021, 09:26 AM
Last Post: deebo
  ReferenceError: weakly-referenced object no longer exists MrBitPythoner 17 11,948 Dec-14-2020, 07:34 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020