0:0027:29

The world of Python

Ayushi Gupta 27:29 2021

Two lines of Python can do the work of 10 or 15 in other languages

Online advice often warns that picking Python as a primary language will narrow the jobs open to you. Data product management intern Ayushi Gupta, a student at Bhilai Institute of Technology, pushes back by coding live: a working translator built on an API, then a model that predicts house prices. The open question is how much a language designed for readability can really do for a beginner.

Follow two working Python demos, an API translator and a house price model, step by step

Watch on YouTube

In short

Ayushi Gupta argues that Python lets developers focus on building solutions rather than wrestling with syntax, and that choosing it as a primary language does not limit career options. She surveys Python's uses in web development, data and AI, then walks through two live Colab demos: a translator built on the Google Translate API and a linear regression model that predicts house prices.

“As someone has already said, life's better without braces. So why not agree to that?”
“So yeah, as I've already discussed how Python focuses more on developing solutions rather than focusing on the syntax.”

What you will learn

  • Explain why Python's readability and brevity matter when teams inherit each other's code.
  • Identify where Python is used, from Django and Flask web apps to big data, machine learning and web crawling.
  • Call a third-party API from Python with the requests library and check the status code and response.
  • Prepare a dataset for linear regression by filling null values, encoding categorical columns and scaling features.
  • Compare a multivariate regression model with a single-variable model using mean squared error.

Key takeaways from the speaker

  • API
  • machine-learning
  • problem-solving
  • python3

Details

Level
Beginner
Format
Tech talk
Technical depth
Practitioner
For
Student, Early career, Career changer
Length
27:29
Published
June 2021

Questions this talk answers

Why learn Python instead of C, C++ or Java?

Ayushi says Python lets you focus on the solution rather than the syntax, so something that takes 10 or 15 lines elsewhere can take two or three lines. She adds that the right language also depends on which one resonates with the individual.

What can Python be used for?

She lists web development, game development, data science and analytics, big data tools such as Apache Spark, machine learning, deep learning, reinforcement learning, web crawling and embedded applications.

Which Python web frameworks are most popular?

Django is the most popular, followed by the microframework Flask, with others such as web2py also available.

How do you call an external API from Python?

In her demo she encodes the query, builds a payload with source and target languages, and sends a POST request to the Google Translate endpoint with the requests library, then prints the status code and response text.

How do you prepare data before training a linear regression model?

She fills null values in the total bedrooms column with the column mean, label-encodes the categorical ocean proximity column and normalizes features with a min-max scaler before splitting into training and test sets.

About this talk

Python is used for computational problem, for backend, for building ml models, and for most research problems. There are many resources on Internet which says that chossing python as the primary language will restrict the job roles available, and choosing C/C++/Java might be the good option. These information is misleading and many people might not know the magic of Python as a High level language.

Topics

Related talks

Browse the library