Closed chrissprague closed 9 years ago
I think he meant more that no one would write a line of code like that. int
is a function in Python, so wrapping it in parentheses is like wrapping any other single value in parentheses. You wouldn't write z = (x) + (y)
in Python, right? c = int(0)
is the better syntax for expressing that statement. c = (int)(0)
also being correct seems too trivia-like for CS1 students to need to know it.
^^^^^
It's been removed.
From Professor Steele (ignore the pounds which get auto-linked to issue numbers):