- Mar 2019
-
runestone.academy runestone.academy
-
remove aset.remove(item) Removes item from the set
There's also .discard(item) which does the same as .remove(item) except for one thing. It does not raise an error if the item is nonexistent.
-
Removes an arbitrary element from the set
And returns that value
-
bool class
There's also a built-in function known as bool(), which converts a given value into a boolean value (i.e. either True or False). It's also good to know that almost anything as an input to this function would output True, unless the input is taken from the following:
- {} (empty dictionary)
- [] (empty list)
- () (empty tuple)
- set() (empty set)
- "" or ''
- None
- 0
- 0.0
-
-
runestone.academy runestone.academy
-
Computer science is not the study of programming
I think it would be better if the author said is not only the study of programming, since creating a programming language, study a variety of them and indicate their difference in performance and functionality is always an interesting task for computer scientists.
-
-
runestone.academy runestone.academy
-
the study of computers
However, there are fields which are dedicated to study of these revolutionary machines, the study of Computer Systems and Computer Designs are particularly devoted to this end.
-
- Dec 2017
-
runestone.academy runestone.academy
-
Like mathematicians, computer scientists use formal languages to denote ideas (specifically computations). Like engineers, they design things, assembling components into systems and evaluating tradeoffs among alternatives. Like scientists, they observe the behavior of complex systems, form hypotheses, and test predictions.
How CSs are compared to Mathematicians, Engineers and Scientists
-