Python Tutorial for Beginners: Python Variables
Key Takeaways
This video tutorial covers the basics of Python variables, including assignment, data types, and printing values, using tools like Python and Jupyter Notebook.
Full Transcript
hi and welcome we at 365 data science specialize in data science trainings we post videos weekly so you can master indispensable skills for free alright let's get started all right great in this lesson we will start coding what are the main concepts in programming is variables they are your best friends you will deal with them all the time you will use them to store information they will represent your data input let's say you want to have a variable X that is equal to the value of 5 and then ask the computer to tell you the value of that variable so we must tell the Machine that X equals 5 and this is how you could do this in Python type X equals 5 to go through the process of programming the line that says x equals 5 is called a command or a program this is just a line of text to make something out of it we must execute it only then will the computer carry out operations with it press Shift + Enter not just enter and a variable called X will be created and assigned with a value of 5 to be more precise equality in Python and in programming means a sign or bind to okay we carry this operation but we see nothing right now how can we ask the computer to show us the output of what we just did it would be sufficient to write x and then press Shift + Enter and here's the result 5 great as you can see typing in a single line of code and tells a few concepts of programming simultaneously now let's assign the value 8 to a variable we call Y all right shift + enter and we can check why however I'll type Capital y Oh an error this shows us that Python is case-sensitive so pay attention to that it matters if you use lowercase or uppercase letters an alternative way to execute the instruction that will provide the value we assigned to Y would be to use the print command at first sight it seems redundant as we showed we can just type Y nevertheless this command is applied often you'll see it in most of the code produced by professionals it complements the logical flow of your instructions for instance if we say print y the machine will simply execute this command and provide the value of y as a statement and this is all a programmer must see sometimes the last thing I'd like to share with you in this lecture is you can assign a certain number of values to the same number of variables to create the variables x and y we have to assign two values say one and two we must separate each of the variables in each of the values with a comma the parentheses here are not obligatory but we use them to improve the readability of our code now if I call X or Y separately the computer will correctly give me their respective values it is very important that the number of variables on that line equals the number of values otherwise you'll get an error message see great if you found this video interesting and want to gain an edge in your career make sure to LIKE comment and subscribe and don't forget to check out some of our other videos for another quick win in the data science skills department
Original Description
👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/3aCtTAp
👉🏻 Sign up for Our Complete Data Science Training with 57% OFF: https://bit.ly/3hbILbl
This Python Tutorial for Beginners will cover one of the main concepts in programming- variables. As a coding master, you will deal with them all the time. You will use them to store information, and they will also represent your data input. Warm up your fingers and let's get started!
► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1
► VISIT our website: https://bit.ly/365ds
🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/
365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.
We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.
Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb
#python #datascience #programming
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from 365 Data Science · 365 Data Science · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Population vs Sample
365 Data Science
Data Science & Statistics: Levels of measurement
365 Data Science
Statistics Tutorials: Mean, median and mode
365 Data Science
Skewness
365 Data Science
What is a distribution?
365 Data Science
The Normal Distribution
365 Data Science
Central limit theorem
365 Data Science
Student's T Distribution
365 Data Science
Type I error vs Type II error
365 Data Science
Hypothesis testing. Null vs alternative
365 Data Science
The linear regression model
365 Data Science
Simple linear regression model. Geometrical representation
365 Data Science
INDEX and MATCH application of the two functions separately and combined [Advanced Excel]
365 Data Science
INDIRECT Excel Function: How it works and when to use it [Advanced Excel]
365 Data Science
VLOOKUP and MATCH another useful functions combination [Advanced Excel]
365 Data Science
VLOOKUP COLUMN and ROW - Handle large data tables with ease [Advanced Excel]
365 Data Science
The ELIF keyword [Python Fundamentals]
365 Data Science
Working with Tuples in Python
365 Data Science
Database Terminology - A Beginners Guide
365 Data Science
Relational Database Essentials
365 Data Science
Database vs Spreadsheet - Advantages and Disadvantages
365 Data Science
Conditional Statements and Loops
365 Data Science
Backpropagation – The Math Behind Optimization
365 Data Science
Monte Carlo: Forecasting Stock Prices Part I
365 Data Science
Monte Carlo: Forecasting Stock Prices Part II
365 Data Science
Monte Carlo: Forecasting Stock Prices Part III
365 Data Science
365 Data Science Online Program
365 Data Science
Data frames - Creating a data frame
365 Data Science
Data Science & Statistics: Slicing a matrix in R
365 Data Science
Data frames in R - Exporting data in R
365 Data Science
Data frames in R - Transforming data PART II
365 Data Science
Data Frames in R - Subsetting a data frame
365 Data Science
Data Science & Statistics: Matrix arithmetic in R
365 Data Science
Data Science & Statistics: Indexing an element from a matrix
365 Data Science
Data Frames in R - Extending a data frame
365 Data Science
Data Science & Statistics: Creating a matrix in R FASTER
365 Data Science
Data Science & Statistics: Creating a Matrix in R
365 Data Science
Data frames - Importing data in R
365 Data Science
Data frames in R - Getting a sense of your data
365 Data Science
Data frames in R - Transforming data PART I
365 Data Science
Data frames in R - Import a CSV in R
365 Data Science
Data Science & Statistics: Matrix operations in R
365 Data Science
Data Science & Statistics: Matrix recycling in R
365 Data Science
Tableau vs Excel: When to use Tableau and when to use Excel
365 Data Science
Download Tableau: Learn how to download Tableau Public
365 Data Science
Connecting data sources: Useful tips when connecting data sources to Tableau
365 Data Science
The Tableau interface: See how to navigate through the Tableau interface
365 Data Science
Tableau data visualization: Create your first Tableau visualization!
365 Data Science
Duplicating sheets: This is how to duplicate a sheet in Tableau
365 Data Science
Build a table in Tableau: The steps needed to create a simple table in Tableau
365 Data Science
Custom fields in Tableau: Using Tableau operators to create custom fields
365 Data Science
Custom fields in Tableau: Add calculations to tables through custom fields
365 Data Science
Totals in Tableau: Learn how to display subtotals and totals in Tableau
365 Data Science
Gross Margin calculation in Tableau
365 Data Science
What is a filter in Tableau: Set up a filter in Tableau to specify the data you want to show
365 Data Science
Joins in Tableau: Inner, outer, left, or a right join in Tableau
365 Data Science
Building a Tableau dashboard: Three types of charts you want to have in a Tableau dashboard
365 Data Science
Creating great looking charts in Tableau: Real life Exercise on charts in Tableau
365 Data Science
Joins in Tableau: Choose the correct join type
365 Data Science
How to make a data check in Tableau: A quick data check is better than no data check
365 Data Science
More on: Python for Data
View skill →
🎓
Tutor Explanation
DeepCamp AI