Karteikarten
Ohne Titel
Karten in diesem Stapel (40)
- 1What is Bash?Bash is the shell or command line interpreter.
- 2"print"Print the expression.
- 3How to run a fileType: python filename.py
- 4#Tells python not to print a line of code.
- 5File name extension for python file.py
- 6+plus
- 7-minus
- 8*asterisk
- 9/slash
- 10%modulus
- 11<less-than
- 12>greater-than
- 13<==less-than-equal
- 14>==greater-than-equal
- 15Floating point numberA number with a decimal point e.g. 10.08
- 16Order of operations in the UKBIDMAS (Brackets, Indices, Division, Multiplication, Addition, Subtraction).
- 17Order of operations Python 2.6PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction).
- 18Space between words in variable namesUnderscore or '_'
- 19What does the equals sign do?Assigns a value or name on the right to the variable on the left.
- 20==Tests if two things have the same value.
- 21Double quotes denote?A string
- 22Formatters%s %r %d
- 23How to write multiple formats in a string(milk, eggs, cheese, ham)
- 24/nnewline
- 25"""print multiple lines of code
- 26Escape sequence to print a new line/n
- 27Escape sequence for quotation marksUse single quotes inside double quotes and vice versa.
- 28/ttabbed characters
- 29Escape sequence double-quote/"
- 30\\print a backslash character
- 31raw_input functionPrompts the user for general input
- 3280 charactersHow long a Python line should be.
- 33pydocsearch through Python doc's and libraries installed on the computer
- 34%rused for debugging and a 'raw representation'
- 35%sformatter used for display
- 36closecommand to close a file
- 37readreads the contents of a file
- 38readlinecommand to read one line within a file
- 39truncateempties the contents of a file
- 40write('stuff')command to write 'stuff' into a file
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von vagueb am 10/12/2014.
- Erstellt von
- vagueb
- Aufrufe
- 0
- Bewertung