Introduction to Python
The course is part of this learning path
In this first course, we introduce the Python Language, the declaration model, and how variables and functions are used in python.
Our learning objectives for this course are to introduce the python language and to be able to recognize and explain the core concepts of the Python language.
- [Instructor] Okay, let's just quickly summarize what we've covered in this course. First, everything in Python is declared by assignment. Python supports Dynamic typing. Variables in Python are declared by assigning to them. A variable cannot be used before it is assigned to, however. The Python convention for variable names is all_lower_case_words_with_underscores.
Python supports three numeric types; integers, floating point numbers, and complex numbers. Python supports four types of sequences; strings, bytes, lists, and tuples. Python also supports mapping modes; dictionaries and sets. Dictionaries are mapped sets of values. Dictionary keys must be hashable. Sets are similar to dictionaries, but contain only keys. A set is an unique collection of values and there are two types. The normal set is dynamic, or mutable, and a frozen set is fixed, or immutable, like a tuple.
In Python, modules must be imported before their contents may be accessed. Variables, functions, and classes must be declared before they can be used. There are three main IO methods in Python; print, open and input.
The conditional statement in Python is IF. There are two kinds of loops in Python. The while-loop is used for reading data, typically from a database or another data source, or when waiting for user input to end a loop. The for-loop is used to iterate through a sequence of data. Built in functions can be applied to many different data types, but not all functions can be applied to all data types.
Okay, that completes this lecture. See you in the next one.
Andrew is fanatical about helping business teams gain the maximum ROI possible from adopting, using, and optimizing Public Cloud Services. Having built 70+ Cloud Academy courses, Andrew has helped over 50,000 students master cloud computing by sharing the skills and experiences he gained during 20+ years leading digital teams in code and consulting. Before joining Cloud Academy, Andrew worked for AWS and for AWS technology partners Ooyala and Adobe.