Difference between revisions of "Python Keywords, Concepts, Functions"
(→Python Keywords) |
(→Python Keywords) |
||
Line 5: | Line 5: | ||
=Python Keywords= | =Python Keywords= | ||
* <code>break</code> - exit the current loop | * <code>break</code> - exit the current loop | ||
− | + | * <code>print</code> - function to write to the screen | |
− | + | * <code></code> - Text data type | |
− | + | * <code></code> - Function to convert a string to an integer | |
− | Text data type | + | * <code></code> - Function to generate a sequence of numbers |
− | Function to convert a string to an integer | + | * <code></code> - Determine whether two objects are the same object(not just value) |
− | Function to generate a sequence of numbers | + | * <code></code> - To load a module |
− | Determine whether two objects are the same object(not just value) | + | * <code></code> - Declare a function |
− | To load a module | + | * <code></code> - Loop with only condition |
− | Declare a function | + | * <code></code> - Conditional statements (three keywords) |
− | Loop with only condition | + | * <code></code> - Function to get the length of a string |
− | Conditional statements (three keywords) | + | * <code></code> - Loop with that iterates through a list |
− | Function to get the length of a string | + | * <code></code> - Keyword to send a value back from a function |
− | Loop with that iterates through a list | + | * <code></code> - Boolean operator, True only if both sides are True |
− | Keyword to send a value back from a function | + | * <code></code> - Boolean operator, True if either side is True |
− | Boolean operator, True only if both sides are True | + | * <code></code> - Boolean operator, negates |
− | Boolean operator, True if either side is True | + | * <code></code> - Boolean values (two keywords) |
− | Boolean operator, negates | + | * <code></code> - Remove from a list by position |
− | Boolean values (two keywords) | + | * <code></code> - Handle an exception (2 keywords) |
− | Remove from a list by position | + | * <code></code> - Test if something is inside of a list/string/tuple/dictionary |
− | Handle an exception (2 keywords) | + | * <code></code> - Special value for a variable that has no value |
− | Test if something is inside of a list/string/tuple/dictionary | + | |
− | Special value for a variable that has no value | + | * <code>boolean</code> - data type for True and False |
=Python Commonly Used Functions= | =Python Commonly Used Functions= |
Revision as of 21:03, 31 December 2019
See also Python Programming - Getting Started
Following are terse descriptions for Python3 keywords and commonly used functions. For more information, see w3schools for a bit more explanation and python.org for the language reference.
Python Keywords
break
- exit the current loopprint
- function to write to the screen- Text data type
- Function to convert a string to an integer
- Function to generate a sequence of numbers
- Determine whether two objects are the same object(not just value)
- To load a module
- Declare a function
- Loop with only condition
- Conditional statements (three keywords)
- Function to get the length of a string
- Loop with that iterates through a list
- Keyword to send a value back from a function
- Boolean operator, True only if both sides are True
- Boolean operator, True if either side is True
- Boolean operator, negates
- Boolean values (two keywords)
- Remove from a list by position
- Handle an exception (2 keywords)
- Test if something is inside of a list/string/tuple/dictionary
- Special value for a variable that has no value
boolean
- data type for True and False