Scott Williams 🐧 ( vwbusguy@mastodon.online ) to Programming@fedia.io · 2 years agoPython pop quizmessage-squaremessage-square15linkfedilinkarrow-up11file-text
arrow-up11message-squarePython pop quizScott Williams 🐧 ( vwbusguy@mastodon.online ) to Programming@fedia.io · 2 years agomessage-square15linkfedilinkfile-text
minus-squareMichael T Babcock ( mikebabcock@floss.social ) linkfedilinkarrow-up1·2 years ago@vwbusguy@mastodon.online pro tip: if you expect Python to interpret something a specific way, wrap it in a constructor. For instance: a = float(1230,30) Then, you’ll either get what you expected or an error telling you the problem.
@vwbusguy@mastodon.online pro tip: if you expect Python to interpret something a specific way, wrap it in a constructor.
For instance: a = float(1230,30)
Then, you’ll either get what you expected or an error telling you the problem.