Python Tutorial : Hello Python!

DataCamp · Beginner ·🔧 Backend Engineering ·6y ago

Key Takeaways

This video tutorial introduces Python programming language, its history, and its applications in data science, with a focus on Python 3, using tools such as IPython and DataCamp's interactive exercise interface.

Full Transcript

hi my name is Hugo and I'll be your host for introduction to Python for data science I'm a data scientist and educator at data camp and host of the data frame podcast which you must check out in this course you will learn Python for data science through video lessons like this one and interactive exercises you get your own Python session where you can experiment and try to come up with the correct code to solve the instructions you're learning by doing while receiving customized and instant feedback on your work python was conceived by guido van rossum here you can see a photo of me with ghido what started as a hobby project soon became a general-purpose programming language nowadays you can use Python to build practically any piece of software but how did this happen well first of all python is open source it's free to use second it's very easy to build packages in Python which is code that you can share with other people to solve specific problems throughout time more and more of these packages specifically built for data science have been developed suppose you want to make some fancy visualizations of your company's sales there's a package for that or what about connecting to a database to analyze sensor measurements there's also a package for that people often refer to Python as the Swiss Army knife of programming languages as you can do almost anything with it in this course we'll start to build up your data science coding skills bit by bit so make sure to stick around to see how powerful the language can be currently there are two common versions of Python version 2.7 and 3.5 apart from some since tactical differences they are pretty similar but as support for version 2 will fade over time our courses focus on Python 3 to install python 3 on your own system follow the steps at this URL now that you're all eyes and ears for Python let's start experimenting I'll start with the Python shell a place where you can type Python code and immediately see the results in data camps exercise interface this shell is embedded here let's start off simple and use Python as a calculator let me type 4 plus 5 and hit enter python interprets what you typed and prints the result of your calculation 9 the Python shell that's used here is actually not the original one we're using ipython short for interactive Python which is some kind of juiced up version of regular Python that'll be useful later on ipython was created by Fernando Perez and is part of the broader Jupiter ecosystem apart from interactively working with Python you can also have Python run so called Python scripts these Python scripts are simply text files with the extension dot pi it's basically a list of Python commands that are executed almost as if you are typing the commands in the shell yourself line by line let's put the command from before in a script now which can be found here in data camps interface the next step is executing the script by clicking submit answer if you execute this script in the data camp interface there's nothing in the output pane that's because you have to explicitly use print inside scripts if you want to generate output during execution let's wrap our previous calculation in a print call and rerun the script this time the same output as before is generated great putting your code in Python scripts instead of manually retyping every step interactively will help you to keep structure and avoid retyping everything over and over again if you want to make a change you simply make the change in the script and rerun the entire thing now that you've got an idea about different ways of working with python i suggest you head over to the exercises use the ipython shell for experimentation and use the python script editor to code the actual answer if you click Submit answer your script will be executed and check for correctness get coding and don't forget to have fun

Original Description

Want to learn more? Take the full course at https://learn.datacamp.com/courses/intro-to-python-for-data-science at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work. --- Hi, my name is Hugo and I'll be your host for Introduction to Python for Data Science. I'm a data scientist and educator at DataCamp and host of the DataFramed podcast, which you must check out. In this course, you will learn Python for Data Science through video lessons, like this one, and interactive exercises. You get your own Python session where you can experiment and try to come up with the correct code to solve the instructions. You're learning by doing, while receiving customized and instant feedback on your work. Python was conceived by Guido Van Rossum. Here, you can see a photo of me with Guido. What started as a hobby project, soon became a general-purpose programming language: nowadays, you can use Python to build practically any piece of software. But how did this happen? Well, first of all, Python is open source. It's free to use. Second, it's very easy to build packages in Python, which is code that you can share with other people to solve specific problems. Throughout time, more and more of these packages specifically built for data science have been developed. Suppose you want to make some fancy visualizations of your company's sales. There's a package for that. Or what about connecting to a database to analyze sensor measurements? There's also a package for that. People often refer to python as the swiss army knife of programming languages as you can do almost anything with it. In this course, we'll start to build up your data science coding skills bit by bit, so make sure to stick around to see how powerful the language can be. Currently, there are two common versions of Python, version 2-point-7 and 3-point-5 and later. Apart from some syntactical differences, they are pretty similar, but as support for version 2 will
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from DataCamp · DataCamp · 0 of 60

← Previous Next →
1 SQL Server Tutorial: Date manipulation
SQL Server Tutorial: Date manipulation
DataCamp
2 R Tutorial: Intermediate Interactive Data Visualization with plotly in R
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
3 R Tutorial: Adding aesthetics to represent a variable
R Tutorial: Adding aesthetics to represent a variable
DataCamp
4 R Tutorial: Moving Beyond Simple Interactivity
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
5 Python Tutorial: Why use ML for marketing? Strategies and use cases
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
6 Python Tutorial: Preparation for modeling
Python Tutorial: Preparation for modeling
DataCamp
7 Python Tutorial: Machine Learning modeling steps
Python Tutorial: Machine Learning modeling steps
DataCamp
8 R Tutorial: The prior model
R Tutorial: The prior model
DataCamp
9 R Tutorial: Data & the likelihood
R Tutorial: Data & the likelihood
DataCamp
10 R Tutorial: The posterior model
R Tutorial: The posterior model
DataCamp
11 R Tutorial: An Introduction to plotly
R Tutorial: An Introduction to plotly
DataCamp
12 R Tutorial: Plotting a single variable
R Tutorial: Plotting a single variable
DataCamp
13 R Tutorial: Bivariate graphics
R Tutorial: Bivariate graphics
DataCamp
14 Python Tutorial: Customer Segmentation in Python
Python Tutorial: Customer Segmentation in Python
DataCamp
15 Python Tutorial: Time cohorts
Python Tutorial: Time cohorts
DataCamp
16 Python Tutorial: Calculate cohort metrics
Python Tutorial: Calculate cohort metrics
DataCamp
17 Python Tutorial: Cohort analysis visualization
Python Tutorial: Cohort analysis visualization
DataCamp
18 R Tutorial: Building Dashboards with flexdashboard
R Tutorial: Building Dashboards with flexdashboard
DataCamp
19 R Tutorial: Anatomy of a flexdashboard
R Tutorial: Anatomy of a flexdashboard
DataCamp
20 R Tutorial: Layout basics
R Tutorial: Layout basics
DataCamp
21 R Tutorial: Advanced layouts
R Tutorial: Advanced layouts
DataCamp
22 Python Tutorial: Time Series Analysis in Python
Python Tutorial: Time Series Analysis in Python
DataCamp
23 Python Tutorial: Correlation of Two Time Series
Python Tutorial: Correlation of Two Time Series
DataCamp
24 Python Tutorial: Simple Linear Regressions
Python Tutorial: Simple Linear Regressions
DataCamp
25 Python Tutorial: Autocorrelation
Python Tutorial: Autocorrelation
DataCamp
26 R Tutorial: The gapminder dataset
R Tutorial: The gapminder dataset
DataCamp
27 R Tutorial: The filter verb
R Tutorial: The filter verb
DataCamp
28 R Tutorial: The arrange verb
R Tutorial: The arrange verb
DataCamp
29 R Tutorial: The mutate verb
R Tutorial: The mutate verb
DataCamp
30 R Tutorial: What is cluster analysis?
R Tutorial: What is cluster analysis?
DataCamp
31 R Tutorial: Distance between two observations
R Tutorial: Distance between two observations
DataCamp
32 R Tutorial: The importance of scale
R Tutorial: The importance of scale
DataCamp
33 R Tutorial: Measuring distance for categorical data
R Tutorial: Measuring distance for categorical data
DataCamp
34 Python Tutorial: Plotting multiple graphs
Python Tutorial: Plotting multiple graphs
DataCamp
35 Python Tutorial: Customizing axes
Python Tutorial: Customizing axes
DataCamp
36 Python Tutorial: Legends, annotations, & styles
Python Tutorial: Legends, annotations, & styles
DataCamp
37 Python Tutorial: Introduction to iterators
Python Tutorial: Introduction to iterators
DataCamp
38 Python Tutorial: Playing with iterators
Python Tutorial: Playing with iterators
DataCamp
39 Python Tutorial: Using iterators to load large files into memory
Python Tutorial: Using iterators to load large files into memory
DataCamp
40 SQL Tutorial: Introduction to Relational Databases in SQL
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
41 SQL Tutorial: Tables: At the core of every database
SQL Tutorial: Tables: At the core of every database
DataCamp
42 SQL Tutorial: Update your database as the structure changes
SQL Tutorial: Update your database as the structure changes
DataCamp
43 Python Tutorial: Classification-Tree Learning
Python Tutorial: Classification-Tree Learning
DataCamp
44 Python Tutorial: Decision-Tree for Classification
Python Tutorial: Decision-Tree for Classification
DataCamp
45 Python Tutorial: Decision-Tree for Regression
Python Tutorial: Decision-Tree for Regression
DataCamp
46 Python Tutorial: Census Subject Tables
Python Tutorial: Census Subject Tables
DataCamp
47 Python Tutorial: Census Geography
Python Tutorial: Census Geography
DataCamp
48 Python Tutorial: Using the Census API
Python Tutorial: Using the Census API
DataCamp
49 R Tutorial: A/B Testing in R
R Tutorial: A/B Testing in R
DataCamp
50 R Tutorial: Baseline Conversion Rates
R Tutorial: Baseline Conversion Rates
DataCamp
51 R Tutorial: Designing an Experiment - Power Analysis
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
52 R Tutorial: Introduction to qualitative data
R Tutorial: Introduction to qualitative data
DataCamp
53 R Tutorial: Understanding your qualitative variables
R Tutorial: Understanding your qualitative variables
DataCamp
54 R Tutorial: Making Better Plots
R Tutorial: Making Better Plots
DataCamp
55 SQL Tutorial: OLTP and OLAP
SQL Tutorial: OLTP and OLAP
DataCamp
56 SQL Tutorial: Storing data
SQL Tutorial: Storing data
DataCamp
57 SQL Tutorial: Database design
SQL Tutorial: Database design
DataCamp
58 Python Tutorial: Introduction to spaCy
Python Tutorial: Introduction to spaCy
DataCamp
59 Python Tutorial: Statistical Models
Python Tutorial: Statistical Models
DataCamp
60 Python Tutorial: Rule-based Matching
Python Tutorial: Rule-based Matching
DataCamp

This video tutorial introduces Python programming language and its applications in data science, with a focus on Python 3, using tools such as IPython and DataCamp's interactive exercise interface. The tutorial covers the basics of Python, including its history, syntax, and data science applications. By the end of the tutorial, viewers will be able to write Python code, use the IPython shell, and create Python scripts.

Key Takeaways
  1. Install Python 3 on your system
  2. Open the IPython shell
  3. Type Python code and execute it
  4. Create a Python script
  5. Use the print function to generate output
  6. Execute the script and check for correctness
💡 Python is a versatile and widely-used programming language that can be applied to various tasks, including data science, and its open-source nature and ease of use make it an ideal language for beginners and experienced programmers alike.

Related AI Lessons

Up next
This Cop Was Held Accountable For His Brutality! #police #lawyer
Hampton Law
Watch →