Variables & Data Types - The Technical Interview | Introduction ~ Episode 0.3

Published: 21 February 2023
on channel: David Weiss
170
9

Hey Coders! Foundational to any programming language are variables and data types, and python is no different! Variables are used to store data, so they can be retrieved, updated, and used later in your script, and since python is dynamically typed, those variables can even change their data type! Be sure to learn all the ins and outs of variables and data types in this video, because we'll need them for basically every interview question that will follow.

Answers to Post-Video Quiz:
1. A Variable stores data. A Data Type is a classification for a certain piece of data that determines the operations that can be performed on it.
2. First write the variable name, then a single equal sign, then the value you want assigned to that variable. ( variable_name = "value" )
3. A statically typed language enforces that a variable hold the same data type throughout the script. A dynamically typed language gives the freedom for a variable to change its data type, or put another way, a variable's data type is determined at run time, not compile time. Python is dynamically typed.
4. A weakly typed language has the freedom to implicitly convert a piece of data's type. In a strongly typed language, once a variable has been given a type, the only way to change that is if the developer explicity casts it into another type or reassigns it. Python is strongly typed.
5. Use the built-in function type()

Check out the source code on GitHub:
https://github.com/davidtheweiss/pyth...

❤️ Support the ongoing growth of this channel!   / davidweissprogramming  

🧑‍💻 Python Documentation:
https://docs.python.org/

----------------------------------------------------------------------------------------------
🕒 Timestamps
0:00 Intro
0:12 Variables, conceptually
0:57 Data types, conceptually
1:55 Python is DYNAMICALLY TYPED
3:05 Declaring variables the standard way
3:55 Declaring variables the more concise way
5:02 Variable naming conventions
7:10 Python is STRONGLY TYPED
10:00 Post Video Quiz
----------------------------------------------------------------------------------------------
Other playlists:

-------------------------------------
Python
-------------------------------------
Interview Prep Introduction:
   • Python Interview Prep - Season 0 | In...  

Pandas:
   • Pandas  

-------------------------------------
Flutter
-------------------------------------
Basic Widgets:
   • Flutter - Season 2 | Basic Widgets  

Dart:
   • Flutter - Season 1 | Dart  

Flutter Orientation:
   • Flutter - Season 0 | Orientation  

-------------------------------------
Google Cloud
-------------------------------------
Compute Engine:
   • Google Cloud - Season 2 | Compute Engine  

App Engine:
   • Google Cloud - Season 1 | App Engine  

Google Cloud Orientation:
   • Google Cloud - Season 0 | Orientation  

-------------------------------------
Apps Script
-------------------------------------
Cache Service:
   • Apps Script - Season 17 | Cache Service  

JDBC Service:
   • Apps Script - Season 16 | JDBC Service  

Data Studio Service:
   • Apps Script - Season 15 | Data Studio...  

Maps Service:
   • Apps Script - Season 14 | Maps Service  

Utilities Service:
   • Apps Script - Season 13 | Utilities S...  

Properties Service:
   • Apps Script - Season 12 | Properties ...  

URL Fetch Service:
   • Apps Script - Season 11 | URL Fetch S...  

Drive Service:
   • Apps Script - Season 10 | Drive Service  

Forms Service:
   • Apps Script - Season 9 | Forms Service  

Lock Service:
   • Apps Script - Season 8 | Lock Service  

HTML Service:
   • Apps Script - Season 7 | HTML Service  

Document Service:
   • Apps Script - Season 6 | Document Ser...  

Slides Service:
   • Apps Script - Season 5 | Slides Service  

Calendar Service:
   • Apps Script - Season 4 | Calendar Ser...  

Script Service:
   • Apps Script - Season 3 | Script Service  

Gmail Service:
   • Apps Script - Season 2 | Gmail Service  

Spreadsheet Service:
   • Apps Script - Season 1 | Spreadsheet ...  

Apps Script Orientation:
   • Apps Script - Season 0 | Orientation  
----------------------------------------------------------------------------------------------