ADV PROG DAY 4 Flashcards
- An object-oriented interpreted language, used throughout CNO mission areas for building CNO analysis tools and testing applications.
- An easy to learn programming language with decreased complexity, code-writing efficiency, limitless third-party libraries, and is available on most UNIX workstations.
python
display information on the monitor using Python.
automatically inserts a once the string has been displayed.
use a comma so output from two or more print statements can share the same line.
character.
\n
Tab character. The width of the tab is set by the terminal program, not the Python script, although it is typically eight spaces.
\t
Removes the meaning of the quote so it can be used as part of the string.
\” or \’
Backspace. Removes previous character from string.
\b
Attempts to convert the providedobject into a string.
str()
Attempts to convert the provided object into an integer.
int()
Attempts to convert the provided object into a float.
float()
Returns a sequenced list of elements from the object passed.
list()
Returns the data type of the object passed.
type()
Exits the Python script and returns a number to the terminal.
exit()
Displays the help page from the Python documents.
help()
Displays the number of elements in a set, like a list or a string.
len()
takes exactly what is typed and passes it back as a string. It does not interpret the user input.
Whether an integer value or a list is entered, its type is of string only.
raw_input( )
Returns a copy of the string with each letter capitalized.
string.upper( )