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.
Hi and welcome back. So let's start with a high-level overview of Python features. First off, everything in Python is declared by assignment. In Python, if you reference a variable inside a function, that variable is implicitly global. If a variable is assigned a value anywhere within the function's body, it's assumed to be a local, unless explicitly declared as global.
Second, Python supports dynamic typing. Now, this is a massive timesaver when you need to write repetitive functions quickly.
Third, variables in Python are declared by assigning to them. So Python does not require explicit type specifiers, but sets the type implicitly by examining the value that was assigned. That means assigning a literal integer to a variable creates a variable of type int, while assigning quoted text to a variable creates a variable of type string. Once a variable is assigned to, it'll cause an error if the variable is used with an operator or function that is inappropriate for that type.
Fourth, a variable cannot be used before it is assigned to. Now, variables must be assigned some value. A value of None may be assigned if no particular value is needed.
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.