Shared Flashcard Set

Details

Python Operators
Python operators and operands
15
Computer Science
9th Grade
11/06/2009

Additional Computer Science Flashcards

 


 

Cards

Term
-
Definition
minus (subtraction)
Term
+
Definition
plus (addition)
Term
/
Definition
divide (division)
Term
*
Definition
multiply (multiplication)
Term
**
Definition
exponent (exponentiation)
Term
When both of the operands are integers, the result must also be an integer, and by convention, integer division always rounds __________.
Definition
Down
Term
The acronym PEMDAS is a useful way to remember the _________________.
Definition
Order Of Operations
Term
Name the order of operations
Definition
Parenthases, exponentiation, division, multiplication, addition, subtraction.
Term
In general, can you perform mathematical operations on strings?
Definition
No
Term
For strings, the + operator represents?
Definition
concatenation
Term
concatenation
Definition
joining the two operands by linking them end-to-end. For example:

fruit = 'banana'
bakedGood = ' nut bread'
print fruit + bakedGood
Term
The * operator also works on strings by performing ________________?
Definition
repetition
Term
the left-hand side of an assignment statement has to be a ___________, not an expression.
Definition
variable name
Term
comment
Definition
#
Term
What is the symbol for integer division operation? (It has the same effect as the division operator, but it signals that the effect is deliberate.)
Definition
//
Supporting users have an ad free experience!