Python Flashcards
\
Backslash. Prints one backslash.
'
Single quote. Prints a single quote.
"
Double quote. Prints a single double quote.
\a
Bell. Sounds the system bell.
\n
Newline. Moves the cursor to the beginning of next line.
\t
Horizontal tab. Moves cursor forward one tab stop.
+
Addition. Combines two strings or adds two integers.
-
Subtraction.
*
Multiplication. Multiplies a string or integer.
/
Division (true).
//
Division (integer). Divides without a remainder.
%
Modulus. Gives just the remainder.
input ( )
Gets text from the user. Returns the answer as a string.
upper ( )
Returns uppercase version of the string.
lower ( )
Returns lowercase version of the string.
swapcase ( )
Returns a new string where the case of each letter is switched.
capitalize ( )
Returns a new string where the first letter is capitalized and the rest are lowercase.