Crash Course on Python Flashcards
What is a script?
A script is a program that is short, simple, and can be written very quickly.
What are semantics and syntax?
The syntax is the rules for how each instruction is written and the semantics are the effects the instructions have.
What is automation?
Automation is the process of replacing a manual step with one that happens automatically.
What are some benefits of automation?
It can also save time, reduce errors, increase consistency, and provide a way to centralized solutions and mistakes making them easier to fix.
What are some tasks that aren’t suited for automation?
They may require a degree of creativity or flexibility that automatic systems can’t provide or for more complicated or less frequently executed tasks creating the automation may actually be more effort or cost than it’s worth.
When was Python releases?
Its first version was released by Guido van Rossum back in 1991
What is Python for?
You can use Python to calculate statistics, run your e-commerce site, process images, interact with web services, and do a whole host of other tasks. Python is perfect for automation. It lets you automate everyday tasks by writing simple scripts that are easy to understand and easy to maintain.
What are functions?
Functions are pieces of code that perform a unit of work.
What are keywords?
Keywords are reserved words that are used to construct instructions.
How do you determine the data type?
type()
What is an expression?
An expression is a combination of numbers, symbols or other variables that produce a result when evaluated.
How are variables named?
Variable names can’t have any spaces and they must start with either a letter or an underscore. Also, they can only be made up of letters, numbers and underscores.
What is implicit conversion?
The interpreter automatically converts one data type into another.
Display a function header.
def name(parameter, parameter):
What is refactoring?
Rewriting code to be more self-documenting.