#type-conversion

[ follow ]
Scala
fromwww.scala-lang.org
1 week ago

Scala 3.8.2 is now available!

Scala 3.8's betterFors feature changes for-comprehension desugaring, removing intermediate map operations that previously converted Maps to Lists, altering runtime behavior and requiring explicit type conversions for backward compatibility.
fromPythonmorsels
2 months ago

Debugging with f-strings

If you're using print calls to debug your Python code, consider using f-strings with self-documenting expressions instead. A broken Python program Here we have a program that makes a random math prompt and then validates whether the answer give by the user is correct: This program doesn't work right now: $ python3 check_mult.py What's 9 multiplied by 8? 72 That's incorrect Our program always tells us that our answer is incorrect.
Python
[ Load more ]