1. Home
  2. Training Library
  3. Programming
  4. Programming Courses
  5. Introduction to Python for Programmers

Python Features

Developed with
Trivera

Contents

keyboard_tab

The course is part of this learning path

Start course
Overview
Difficulty
Intermediate
Duration
51m
Students
6361
Ratings
3.2/5
starstarstarstar-borderstar-border
Description

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.

Transcript

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.

About the Author
Students
157774
Courses
73
Learning Paths
164

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.

Covered Topics